$NetBSD: patch-aa,v 1.4 2008/06/02 16:42:21 drochner 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