include: Correctly include signal.h
authorAndreas Schneider <asn@cryptomilk.org>
Thu, 12 Feb 2015 16:00:34 +0000 (17:00 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 12 Feb 2015 16:00:34 +0000 (17:00 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
include/cmocka_private.h
src/cmocka.c

index 0d2bbee0cc61f45e18d7545015560e5def254490..454baf1f4b8a723c8fda58a82fc5cdd6d12a36fd 100644 (file)
@@ -118,7 +118,6 @@ WINBASEAPI BOOL WINAPI IsDebuggerPresent(VOID);
 #define PRIXMAX __PRI64_PREFIX "X"
 #endif
 
-#include <signal.h>
 #endif /* _WIN32 */
 
 /** Free memory space */
index b0e9f570da6fd8d4d868a69618404430b1414920..626b33e53673667f564d06b3fd4f32665d170ffc 100644 (file)
 #include <inttypes.h>
 #endif
 
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+
 #include <stdint.h>
 #include <setjmp.h>
 #include <stdarg.h>