$NetBSD: patch-af,v 1.7 2006/02/02 20:53:44 rillig Exp $

--- src/sema.c.orig	2006-01-20 22:04:29.000000000 +0000
+++ src/sema.c
@@ -42,7 +42,7 @@
 #include "sema.h"
 
 #if !(defined(BSD) && (BSD >= 199103))
-       #if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
+       #if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__DragonFly__)
        /* union semun is defined by including <sys/sem.h> */
        #else
        /* according to X/OPEN we have to define it ourselves */