diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-02-16 21:25:45 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-02-16 21:25:45 +0000 |
commit | 49103e2ba47c8686c2c4e370bb7bcaf7599b4321 (patch) | |
tree | a1bb5c210d3ac031d50ae37f085f55682b9c93e4 /newlib/libc | |
parent | c6e48b1cd1b6d30aa485972411d78b8e308bd974 (diff) | |
download | cygnal-49103e2ba47c8686c2c4e370bb7bcaf7599b4321.tar.gz cygnal-49103e2ba47c8686c2c4e370bb7bcaf7599b4321.tar.bz2 cygnal-49103e2ba47c8686c2c4e370bb7bcaf7599b4321.zip |
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.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/sys/linux/aio.c | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/types.h | 2 |
2 files changed, 3 insertions, 1 deletions
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> |