diff options
Diffstat (limited to 'x11/libgnomekbd2/patches/patch-aa')
-rw-r--r-- | x11/libgnomekbd2/patches/patch-aa | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/libgnomekbd2/patches/patch-aa b/x11/libgnomekbd2/patches/patch-aa new file mode 100644 index 00000000000..482e3959127 --- /dev/null +++ b/x11/libgnomekbd2/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1 2018/06/01 17:04:18 youri Exp $ + +--- config.h.in.orig 2008-05-31 14:33:00.000000000 +0200 ++++ config.h.in +@@ -80,3 +80,15 @@ + + /* Define to 1 if the X Window System is missing or not being used. */ + #undef X_DISPLAY_MISSING ++ ++/* ++ * If NULL is just "0", and is used to terminate the argument list ++ * of functions with the gcc "sentinel" attribute, gcc4 emits ++ * a warning. Temporarily work around the issue until all supported ++ * platforms have the correct definition. ++ */ ++#ifdef __DragonFly__ /* releases prior to 2.0 */ ++#define VPNULL (void *)NULL ++#else ++#define VPNULL NULL ++#endif |