]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Avoid a name clash on UnixWare.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Oct 2020 18:48:49 +0000 (20:48 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Oct 2020 18:48:49 +0000 (20:48 +0200)
Reported by Tim Rice <tim@multitalents.net> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.

* tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.

ChangeLog
tests/nap.h

index 22f79fb09f4aba7d4ab0dd30b924a5735593e229..14dc601caa06f54de9fdcea714bfa395724197bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-10-11  Bruno Haible  <bruno@clisp.org>
+
+       tests: Avoid a name clash on UnixWare.
+       Reported by Tim Rice <tim@multitalents.net> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
+       * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
+
 2020-10-11  Bruno Haible  <bruno@clisp.org>
 
        stdioext: Update comments regarding UnixWare.
index 5dd264f6df65f3445b7720de490bb9db6af8a1e1..c27e538ccd4fc23f6285741b8eeda5f84721b4e1 100644 (file)
 
 # include <intprops.h>
 
+/* Avoid a conflict with a function called nap() on UnixWare.  */
+# if defined _SCO_DS || (defined __SCO_VERSION__ || defined __sysv5__)  /* OpenServer, UnixWare */
+#  include <unistd.h>
+#  undef nap
+#  define nap gl_nap
+# endif
+
 /* Name of the witness file.  */
 #define TEMPFILE BASE "nap.tmp"