1
0
Fork 0

Include signal.h jointly for POSIX systems

Otherwise, for example, FreeBSD the build fails due to SIGKILL not being
around.
This commit is contained in:
Matti Hanninen 2015-08-23 09:13:53 +03:00 committed by Matti Hänninen
parent 3b8dc45dc3
commit c3d84a24a9
1 changed files with 7 additions and 5 deletions

View File

@ -25,13 +25,15 @@
#include <iostream>
#ifdef _WIN32
#if defined(_WIN32)
#include <psapi.h>
#elif defined(__linux__)
#include <fstream>
#elif defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#include <signal.h>
#elif defined(__APPLE__)
#include <mach/mach.h>
#if defined(__linux__)
#include <fstream>
#elif defined(__APPLE__)
#include <mach/mach.h>
#endif
#endif