1
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

View File

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