SIGNATURE_CHECK fails a few tests due to undefined ssize_t, and pread, on my GNU/Linux system.
Not sure if the patch is right, or if the ssize_t module is needed. The pread failure is without a patch; it requires #define _XOPEN_SOURCE 500 here but I'm not sure what the right gnuliby fix is: an AC_CHECK_DECL somewhere? make[4]: Entering directory `/tmp/gnulib/build/pread/gltests' gcc -DHAVE_CONFIG_H -I. -I/tmp/gnulib/build/../testdir/pread/gltests -I. -I/tmp/gnulib/build/../testdir/pread/gltests -I.. -I/tmp/gnulib/build/../testdir/pread/gltests/.. -I../gllib -I/tmp/gnulib/build/../testdir/pread/gltests/../gllib -g -O2 -MT test-pread.o -MD -MP -MF .deps/test-pread.Tpo -c -o test-pread.o /tmp/gnulib/build/../testdir/pread/gltests/test-pread.c /tmp/gnulib/build/../testdir/pread/gltests/test-pread.c:24: error: ‘pread’ undeclared here (not in a function) make[4]: *** [test-pread.o] Error 1 OK to commit? Thanks, Ralf * tests/test-dirent.c: Include <sys/types.h>, for ssize_t. * tests/test-fseeko.c: Likewise. * tests/test-ftello.c: Likewise. * tests/test-getdelim.c: Likewise. * tests/test-getline.c: Likewise. diff --git a/tests/test-dirent.c b/tests/test-dirent.c index 2c6d1fd..ce6d309 100644 --- a/tests/test-dirent.c +++ b/tests/test-dirent.c @@ -18,6 +18,7 @@ #include <config.h> +#include <sys/types.h> #include <dirent.h> /* Check for existence of required types. */ diff --git a/tests/test-fseeko.c b/tests/test-fseeko.c index e8c66df..03721fe 100644 --- a/tests/test-fseeko.c +++ b/tests/test-fseeko.c @@ -25,6 +25,7 @@ # define GL_LINK_WARNING(ignored) ((void) 0) #endif +#include <sys/types.h> #include <stdio.h> #include "signature.h" diff --git a/tests/test-ftello.c b/tests/test-ftello.c index 826df10..46eccf2 100644 --- a/tests/test-ftello.c +++ b/tests/test-ftello.c @@ -18,6 +18,7 @@ #include <config.h> +#include <sys/types.h> #include <stdio.h> #include "signature.h" diff --git a/tests/test-getdelim.c b/tests/test-getdelim.c index df99664..5be8131 100644 --- a/tests/test-getdelim.c +++ b/tests/test-getdelim.c @@ -20,6 +20,7 @@ #include <config.h> #include <stdio.h> +#include <sys/types.h> #include "signature.h" SIGNATURE_CHECK (getdelim, ssize_t, (char **, size_t *, int, FILE *)); diff --git a/tests/test-getline.c b/tests/test-getline.c index 7112b52..a374179 100644 --- a/tests/test-getline.c +++ b/tests/test-getline.c @@ -20,6 +20,7 @@ #include <config.h> #include <stdio.h> +#include <sys/types.h> #include "signature.h" SIGNATURE_CHECK (getline, ssize_t, (char **, size_t *, FILE *));