]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make the tests compile on non-glibc platforms (where they are not used).
authorBruno Haible <bruno@clisp.org>
Fri, 22 Jul 2005 20:08:31 +0000 (20:08 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:39 +0000 (12:12 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/gettext-6-prg.c
gettext-tools/tests/gettext-7-prg.c

index 57c62fd4cdc72e3af504add97dc4539590c7355d..64172bc2da4d05ef0bc145f74cc0508a4baad235 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-22  Bruno Haible  <bruno@clisp.org>
+
+       * gettext-6-prg.c: Don't compile the test on non-glibc systems.
+       * gettext-7-prg.c: Likewise.
+
 2005-07-16  Bruno Haible  <bruno@clisp.org>
 
         * msgcat-stringtable-1: Filter out warning message from output.
index bf68633a10423c3b2d54133b2a5f9e82de493fff..d59a16dad7597745ffada546e79b63798e6e97f8 100644 (file)
 # include <config.h>
 #endif
 
-#if USE_POSIX_THREADS
-
 #include <locale.h>
-#include <pthread.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+
+#if USE_POSIX_THREADS && (__GLIBC__ >= 2)
+
+#include <pthread.h>
 #include "setenv.h"
 
 /* Make sure we use the included libintl, not the system's one. */
index 07e26c391dc76ce57f59fc559d1e24c18a90ff52..81325c3127a6aaa4e37a25911e58edf526f05196 100644 (file)
 # include <config.h>
 #endif
 
-#if USE_POSIX_THREADS
-
 #include <locale.h>
-#include <pthread.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+
+#if USE_POSIX_THREADS && (__GLIBC__ >= 2)
+
+#include <pthread.h>
 #include "setenv.h"
 
 /* Make sure we use the included libintl, not the system's one. */