diff options
author | maya <maya@pkgsrc.org> | 2019-06-04 10:24:21 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2019-06-04 10:24:21 +0000 |
commit | d7fe9ccfb22ef2b0c717ac90a1f0e5fdd4e59706 (patch) | |
tree | dd357eb42ad5a3cb5a556eb594d18508d9674de1 /devel/glib2/patches | |
parent | 3c1906cb7b5beb88b9f3d04eca39c146fd123a60 (diff) | |
download | pkgsrc-d7fe9ccfb22ef2b0c717ac90a1f0e5fdd4e59706.tar.gz |
glib2: check for sys/filio.h before including it. not all linux has it.
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r-- | devel/glib2/patches/patch-gio_inotify_inotify-kernel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/glib2/patches/patch-gio_inotify_inotify-kernel.c b/devel/glib2/patches/patch-gio_inotify_inotify-kernel.c index e15195a42f4..6ec2cbfb127 100644 --- a/devel/glib2/patches/patch-gio_inotify_inotify-kernel.c +++ b/devel/glib2/patches/patch-gio_inotify_inotify-kernel.c @@ -1,4 +1,4 @@ -$NetBSD: patch-gio_inotify_inotify-kernel.c,v 1.3 2019/06/03 23:09:29 maya Exp $ +$NetBSD: patch-gio_inotify_inotify-kernel.c,v 1.4 2019/06/04 10:24:21 maya Exp $ Use _XOPEN_NAME_MAX in lieu of NAME_MAX for SunOS. @@ -7,11 +7,13 @@ https://gitlab.gnome.org/GNOME/glib/merge_requests/889 --- gio/inotify/inotify-kernel.c.orig 2016-02-23 22:25:36.000000000 +0000 +++ gio/inotify/inotify-kernel.c -@@ -30,11 +30,15 @@ +@@ -30,11 +30,17 @@ #include <glib.h> #include "inotify-kernel.h" #include <sys/inotify.h> ++#ifdef HAVE_SYS_FILIO_H +#include <sys/filio.h> ++#endif #include <glib/glib-unix.h> #include "glib-private.h" |