[gjs/meson.msvc: 23/26] 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: 23/26] gjs/context.h: Only include sys/signal.h on non-Windows
- Date: Mon, 28 Oct 2019 02:51:36 +0000 (UTC)
commit f7e6313b773a2556b79d4a2167757cbc4761d984
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]