$NetBSD$

--- src/keyboard.c.orig	2004-01-09 18:16:01.000000000 +0000
+++ src/keyboard.c
@@ -49,8 +49,7 @@ $Id: keyboard.c,v 1.25 2004/01/09 18:16:
 
 #include <glib.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 */
@@ -61,7 +60,6 @@ $Id: keyboard.c,v 1.25 2004/01/09 18:16:
                struct seminfo *__buf;      /* buffer for IPC_INFO */
        };
        #endif
-#endif
 
 #include "dc_com.h"
 #include "display.h"
