[PATCH libXaw] Define PAGE_SIZE as USN_PAGE_SIZE on Windows
James R Larrowe
larrowe.semaj11 at gmail.com
Sat Mar 9 14:45:25 UTC 2019
Take no action on Cygwin.
Signed-off-by: James R Larrowe <larrowe.semaj11 at gmail.com>
---
src/OS.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/OS.c b/src/OS.c
index 4c69005..bd633c3 100644
--- a/src/OS.c
+++ b/src/OS.c
@@ -17,6 +17,12 @@
#define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
#endif
+#if defined(_WIN32) && !defined(__CYGWIN__)
+# include <X11/Xwindows.h>
+# define PAGE_SIZE USN_PAGE_SIZE
+# undef HAVE_GETPAGESIZE
+#endif
+
int
_XawGetPageSize(void)
{
--
2.11.0
More information about the xorg-devel
mailing list