From 49103e2ba47c8686c2c4e370bb7bcaf7599b4321 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 16 Feb 2006 21:25:45 +0000 Subject: 2006-02-16 Jeff Johnston * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit will be defined. * libc/sys/linux/sys/types.h: Move ahead of to preset special flags. --- newlib/ChangeLog | 7 +++++++ newlib/libc/sys/linux/aio.c | 2 ++ newlib/libc/sys/linux/sys/types.h | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) 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 + + * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit + will be defined. + * libc/sys/linux/sys/types.h: Move ahead of + to preset special flags. + 2006-02-15 Corinna Vinschen * 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 #include #include 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 #include +#include #include #include -- cgit v1.2.3