$OpenBSD: patch-src_server_speechd_h,v 1.1.1.1 2011/10/20 11:28:38 ajacoutot Exp $

speechd.h:63: error: redefinition of 'union semun'

--- src/server/speechd.h.orig	Fri Sep 10 10:23:55 2010
+++ src/server/speechd.h	Thu Oct 20 10:51:36 2011
@@ -27,12 +27,12 @@
 
 #define _GNU_SOURCE
 
-#include <netinet/in.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
 #include <sys/ioctl.h>
 #include <sys/wait.h>
+#include <netinet/in.h>
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -56,7 +56,7 @@
 /* TODO: This fixes compilation for Mac OS X but might not be a correct
    solution for other platforms. A better check is needed, possibly including
    _POSIX_C_SOURCE and friends*/
-#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__APPLE__)
+#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__APPLE__) || defined(__OpenBSD__)
  /* union semun is defined by including <sys/sem.h> */
 #else
  /* according to X/OPEN we have to define it ourselves */
