ports/audio/speech-dispatcher/patches/patch-src_server_speechd_h

15 lines
659 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
speechd.h:63: error: redefinition of 'union semun'
Index: src/server/speechd.h
--- src/server/speechd.h.orig
+++ src/server/speechd.h
@@ -55,7 +55,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 */