[PATCH libXaw] Use PAGE_SIZE on Windows

James Larrowe larrowe.semaj11 at gmail.com
Sat Mar 9 14:40:29 UTC 2019


This has some issues. Please give me a minute.

On Sat, Mar 9, 2019 at 9:16 AM James R Larrowe <larrowe.semaj11 at gmail.com>
wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20190309/d209c8d1/attachment.html>


More information about the xorg-devel mailing list