[gjs/meson.msvc: 7/11] gjs/context.h: Only include sys/signal.h on non-Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/meson.msvc: 7/11] gjs/context.h: Only include sys/signal.h on non-Windows
- Date: Mon, 28 Oct 2019 06:56:10 +0000 (UTC)
commit 9cc89b6d3065f150fbbd9c2ecec716d9dac4d13d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Oct 25 15:30:46 2019 +0800
gjs/context.h: Only include sys/signal.h on non-Windows
This is a public header file, so we only include sys/signal.h when we
are not on Windows.
gjs/context.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gjs/context.h b/gjs/context.h
index a02deb0b..b173c32c 100644
--- a/gjs/context.h
+++ b/gjs/context.h
@@ -29,7 +29,10 @@
#endif
#include <stdbool.h> /* IWYU pragma: keep */
-#include <sys/signal.h> /* for siginfo_t */
+
+#ifndef _WIN32
+# include <sys/signal.h> /* for siginfo_t */
+#endif
#include <glib-object.h>
#include <glib.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]