$NetBSD: patch-ac,v 1.3 2006/06/30 02:48:59 joerg Exp $

--- libgimp/gimp.c.orig	2006-06-02 12:04:39.000000000 +0000
+++ libgimp/gimp.c
@@ -21,8 +21,12 @@
 
 #include "config.h"
 
+#if !defined(__DragonFly__)
 #define _POSIX_SOURCE  /* all the sigaction stuff is POSIX */
 #define _SVID_SOURCE   /* except for SA_RESTART, it seems  */
+#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED
+#endif
 
 #include <errno.h>
 #include <stdarg.h>
