patch-src_server_speechd_h 761 B

12345678910111213141516
  1. $OpenBSD: patch-src_server_speechd_h,v 1.5 2016/08/27 20:44:08 ajacoutot Exp $
  2. speechd.h:63: error: redefinition of 'union semun'
  3. --- src/server/speechd.h.orig Wed Aug 10 04:12:10 2016
  4. +++ src/server/speechd.h Sat Aug 27 22:41:04 2016
  5. @@ -57,7 +57,7 @@
  6. /* TODO: This fixes compilation for Mac OS X but might not be a correct
  7. solution for other platforms. A better check is needed, possibly including
  8. _POSIX_C_SOURCE and friends*/
  9. -#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__APPLE__)
  10. +#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__APPLE__) || defined(__OpenBSD__)
  11. /* union semun is defined by including <sys/sem.h> */
  12. #else
  13. /* according to X/OPEN we have to define it ourselves */