Minor problems exposed by compiling C++ tests under _ISOMAC.
authorZack Weinberg <zackw@panix.com>
Sun, 27 Nov 2016 17:36:16 +0000 (12:36 -0500)
committerZack Weinberg <zackw@panix.com>
Sun, 27 Nov 2016 17:36:16 +0000 (12:36 -0500)
* libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
* test-skeleton.c: Include stdint.h to ensure uintptr_t is available.

ChangeLog
libio/libio.h
test-skeleton.c

index 8483b23..4a7395c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-27  Zack Weinberg  <zackw@panix.com>
+
+       * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
+       * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
+
 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
        * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
index efd09f1..f4ead83 100644 (file)
@@ -353,7 +353,7 @@ typedef int __io_seek_fn (void *__cookie, _IO_off64_t *__pos, int __w);
 typedef int __io_close_fn (void *__cookie);
 
 
-#ifdef _GNU_SOURCE
+#ifdef __USE_GNU
 /* User-visible names for the above.  */
 typedef __io_read_fn cookie_read_function_t;
 typedef __io_write_fn cookie_write_function_t;
index fa457be..154096f 100644 (file)
@@ -33,6 +33,7 @@
 #include <sys/wait.h>
 #include <sys/param.h>
 #include <time.h>
+#include <stdint.h>
 
 /* The test function is normally called `do_test' and it is called
    with argc and argv as the arguments.  We nevertheless provide the