[PATCH libXaw] Add definition of getpagesize(), missing on Windows.
James Larrowe
larrowe.semaj11 at gmail.com
Mon Mar 4 14:54:24 UTC 2019
Ping. Anything wrong with this? It's only defined in the plugin header
files for gcc.
On Thu, Feb 28, 2019 at 12:56 PM James R Larrowe <larrowe.semaj11 at gmail.com>
wrote:
> Fix build with --enable-selective-werror.
>
> Signed-off-by: James R Larrowe <larrowe.semaj11 at gmail.com>
> ---
> src/OS.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/OS.c b/src/OS.c
> index 4c69005..cd0c517 100644
> --- a/src/OS.c
> +++ b/src/OS.c
> @@ -37,6 +37,9 @@ _XawGetPageSize(void)
> #endif
>
> #ifdef HAVE_GETPAGESIZE
> +# if defined(_WIN32)
> +extern int getpagesize(void);
> +# endif
> if (pagesize == -1)
> pagesize = getpagesize();
> #endif
> --
> 2.11.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20190304/274b77cc/attachment.html>
More information about the xorg-devel
mailing list