summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-12 16:00:34 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2015-02-12 16:00:34 (GMT)
commite97f3bd69bd1f0c6f6d6467b57739279c77a0b1b (patch)
tree4574a9c33d1306998ee335e8243ccb670d08efca
parent8798b43ea565927b3dbdc387cd0649dc422cdcd8 (diff)
downloadcmocka-e97f3bd69bd1f0c6f6d6467b57739279c77a0b1b.zip
cmocka-e97f3bd69bd1f0c6f6d6467b57739279c77a0b1b.tar.gz
cmocka-e97f3bd69bd1f0c6f6d6467b57739279c77a0b1b.tar.bz2
include: Correctly include signal.h
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--include/cmocka_private.h1
-rw-r--r--src/cmocka.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/cmocka_private.h b/include/cmocka_private.h
index 0d2bbee..454baf1 100644
--- a/include/cmocka_private.h
+++ b/include/cmocka_private.h
@@ -118,7 +118,6 @@ WINBASEAPI BOOL WINAPI IsDebuggerPresent(VOID);
#define PRIXMAX __PRI64_PREFIX "X"
#endif
-#include <signal.h>
#endif /* _WIN32 */
/** Free memory space */
diff --git a/src/cmocka.c b/src/cmocka.c
index b0e9f57..626b33e 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -27,6 +27,10 @@
#include <inttypes.h>
#endif
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+
#include <stdint.h>
#include <setjmp.h>
#include <stdarg.h>