[PATCH libXaw] Use PAGE_SIZE on Windows

James R Larrowe larrowe.semaj11 at gmail.com
Sat Mar 9 14:19:52 UTC 2019


Undefine HAVE_GETPAGESIZE,
 and use normal behavior on Cygwin.

Signed-off-by: James R Larrowe <larrowe.semaj11 at gmail.com>
---
 src/OS.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/OS.c b/src/OS.c
index 4c69005..c1337f6 100644
--- a/src/OS.c
+++ b/src/OS.c
@@ -17,6 +17,11 @@
 #define HAS_SC_PAGESIZE	/* _SC_PAGESIZE may be an enum for Linux */
 #endif
 
+#if defined(_WIN32) && !defined(__CYGWIN__)
+# include <ddk/wdm.h>
+# undef HAVE_GETPAGESIZE
+#endif
+
 int
 _XawGetPageSize(void)
 {
-- 
2.11.0



More information about the xorg-devel mailing list