pkgsrc/x11/libgnomekbd2/patches/patch-aa
youri 62f1291af3 - Move libgnomekbd to libgnomekbd2 for older Gnome2 packages
- Import libgnomekbd 3.6.0 for Cinnamon and Gnome3.
2018-06-01 17:04:18 +00:00

20 lines
618 B
Text

$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