diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-04-13 10:13:43 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-04-13 10:13:43 +0000 |
commit | 38ef94322d9210b433ca60e4c0b4bb1d7e6fcfac (patch) | |
tree | e2bc7338efa21970367c42245b81f317378ce708 /devel/glib2 | |
parent | 6871d2c436e658b83f31fe2f69044b13d79e26f5 (diff) | |
download | pkgsrc-38ef94322d9210b433ca60e4c0b4bb1d7e6fcfac.tar.gz |
Use _XOPEN_NAME_MAX in lieu of NAME_MAX for SunOS.
Diffstat (limited to 'devel/glib2')
-rw-r--r-- | devel/glib2/distinfo | 3 | ||||
-rw-r--r-- | devel/glib2/patches/patch-gio_inotify_inotify-kernel.c | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/devel/glib2/distinfo b/devel/glib2/distinfo index 4e1383cbcb7..ac27befe2a5 100644 --- a/devel/glib2/distinfo +++ b/devel/glib2/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.215 2016/04/07 18:33:05 prlw1 Exp $ +$NetBSD: distinfo,v 1.216 2016/04/13 10:13:43 jperkin Exp $ SHA1 (glib-2.48.0.tar.xz) = afe88c1d64a0f9bdc140e87a84ef9423ce476ca5 RMD160 (glib-2.48.0.tar.xz) = 647bb92c1c6e94042533dda8a3cebc0b3d2693c8 @@ -23,6 +23,7 @@ SHA1 (patch-cl) = 871e1ca59f697eddd6692702fc7d63a2df826afc SHA1 (patch-cm) = 534af37ae8f2bd667f630142058d4de5ea91be93 SHA1 (patch-gio_gdbusauthmechanismsha1.c) = dfbd4a85ea842f11e4bb76d39c5509fb8b0d5baa SHA1 (patch-gio_gresource-tool.c) = 4eb7c9df25e9ac3e977edf3be8fb977a6fb39182 +SHA1 (patch-gio_inotify_inotify-kernel.c) = 18fc55be06dfa4ebf7128b8d1888aaff3b2b95c0 SHA1 (patch-glib_gmain.c) = d09ff66e475ee52d37ac0dcb463110f690ce6511 SHA1 (patch-glib_gthread-posix.c) = ca93c8dc358453eb79b518c884464c90d7628888 SHA1 (patch-glib_gtimezone.c) = d9686da52f171a073d80cfd9f80aa490088a00a3 diff --git a/devel/glib2/patches/patch-gio_inotify_inotify-kernel.c b/devel/glib2/patches/patch-gio_inotify_inotify-kernel.c new file mode 100644 index 00000000000..e2ad322877a --- /dev/null +++ b/devel/glib2/patches/patch-gio_inotify_inotify-kernel.c @@ -0,0 +1,16 @@ +$NetBSD: patch-gio_inotify_inotify-kernel.c,v 1.1 2016/04/13 10:13:43 jperkin Exp $ + +Use _XOPEN_NAME_MAX in lieu of NAME_MAX for SunOS. + +--- gio/inotify/inotify-kernel.c.orig 2016-02-23 22:25:36.000000000 +0000 ++++ gio/inotify/inotify-kernel.c +@@ -36,6 +36,9 @@ + #include "glib-private.h" + + /* From inotify(7) */ ++#if !defined(NAME_MAX) && defined(_XOPEN_NAME_MAX) ++#define NAME_MAX _XOPEN_NAME_MAX ++#endif + #define MAX_EVENT_SIZE (sizeof(struct inotify_event) + NAME_MAX + 1) + + /* Amount of time to sleep on receipt of uninteresting events */ |