]> Savannah Git Hosting - gnulib.git/commitdiff
cond tests: Fix compilation error on Solaris.
authorBruno Haible <bruno@clisp.org>
Thu, 10 May 2018 22:36:14 +0000 (00:36 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 10 May 2018 22:36:14 +0000 (00:36 +0200)
* tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
macro.

ChangeLog
tests/test-cond.c

index 772166e9799b350f50020df5e508db3d2ce4315b..a07d9124812a697eab39c5511028fc0bcfeb720f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-05-10  Bruno Haible  <bruno@clisp.org>
+
+       cond tests: Fix compilation error on Solaris.
+       * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
+       macro.
+
 2018-05-10  Bruno Haible  <bruno@clisp.org>
 
        doc: Add partial info about Android 4.3.
index d2bf560e7100e21128bda64ee8ff0d60ef4ad6ca..658596f4bd58e23b4b2c1617d6af0359bbf7cd1a 100644 (file)
@@ -36,6 +36,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/time.h>
+#include <unistd.h>
 
 #include "glthread/cond.h"
 #include "glthread/lock.h"
@@ -58,7 +59,6 @@
 /*
  * Condition check
  */
-#include <unistd.h>
 static int cond_value = 0;
 gl_cond_define_initialized(static, condtest)
 gl_lock_define_initialized(static, lockcond)