From: Bruno Haible Date: Fri, 22 Jul 2005 20:08:31 +0000 (+0000) Subject: Make the tests compile on non-glibc platforms (where they are not used). X-Git-Tag: v0.15~478 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=498b7052820c563910cd14279ad1bf9b9ba90389;p=thirdparty%2Fgettext.git Make the tests compile on non-glibc platforms (where they are not used). --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 57c62fd4c..64172bc2d 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2005-07-22 Bruno Haible + + * gettext-6-prg.c: Don't compile the test on non-glibc systems. + * gettext-7-prg.c: Likewise. + 2005-07-16 Bruno Haible * msgcat-stringtable-1: Filter out warning message from output. diff --git a/gettext-tools/tests/gettext-6-prg.c b/gettext-tools/tests/gettext-6-prg.c index bf68633a1..d59a16dad 100644 --- a/gettext-tools/tests/gettext-6-prg.c +++ b/gettext-tools/tests/gettext-6-prg.c @@ -21,13 +21,14 @@ # include #endif -#if USE_POSIX_THREADS - #include -#include #include #include #include + +#if USE_POSIX_THREADS && (__GLIBC__ >= 2) + +#include #include "setenv.h" /* Make sure we use the included libintl, not the system's one. */ diff --git a/gettext-tools/tests/gettext-7-prg.c b/gettext-tools/tests/gettext-7-prg.c index 07e26c391..81325c312 100644 --- a/gettext-tools/tests/gettext-7-prg.c +++ b/gettext-tools/tests/gettext-7-prg.c @@ -21,13 +21,14 @@ # include #endif -#if USE_POSIX_THREADS - #include -#include #include #include #include + +#if USE_POSIX_THREADS && (__GLIBC__ >= 2) + +#include #include "setenv.h" /* Make sure we use the included libintl, not the system's one. */