diff options
-rw-r--r-- | newlib/ChangeLog | 7 | ||||
-rw-r--r-- | newlib/libc/sys/linux/aio.c | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/types.h | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a4f60ac65..4944b8867 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2006-02-16 Jeff Johnston <jjohnstn@redhat.com> + + * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit + will be defined. + * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of + <features.h> to preset special flags. + 2006-02-15 Corinna Vinschen <corinna@vinschen.de> * libc/include/sys/time.h (struct timeval): Change member types diff --git a/newlib/libc/sys/linux/aio.c b/newlib/libc/sys/linux/aio.c index de988ebfc..9a2e4ce57 100644 --- a/newlib/libc/sys/linux/aio.c +++ b/newlib/libc/sys/linux/aio.c @@ -4,6 +4,8 @@ /* Currently asynchronous I/O is not implemented. */ +#define _GNU_SOURCE 1 + #include <sys/types.h> #include <aio.h> #include <errno.h> diff --git a/newlib/libc/sys/linux/sys/types.h b/newlib/libc/sys/linux/sys/types.h index 1401b0598..ba191f072 100644 --- a/newlib/libc/sys/linux/sys/types.h +++ b/newlib/libc/sys/linux/sys/types.h @@ -50,8 +50,8 @@ * libc/include/sys/types.h. Repeat those here and * skip the kernel's definitions. */ -#include <features.h> #include <sys/config.h> +#include <features.h> #include <machine/types.h> #include <sys/_types.h> |