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 0d2bbee..454baf1 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 b0e9f57..626b33e 100644 (file)
 #include <inttypes.h>
 #endif
 
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+
 #include <stdint.h>
 #include <setjmp.h>
 #include <stdarg.h>