Another problem in <aio.h>
Andreas Jaeger
aj@suse.de
Thu Dec 16 09:59:00 GMT 1999
I just got:
/opt/gcc-2.95/bin/gcc -ggdb -Wall -Waggregate-return -Wcast-align -Wimplicit -Wmissing-prototypes -Wnested-externs -Wno-parentheses -DAIO -DFIFO -DMMAP -D__linux__ -D_BSD_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c dttape.c -o dttape.o
In file included from dt.h:913,
from dttape.c:59:
/usr/include/aio.h:175: invalid use of `restrict'
/usr/include/aio.h:189: invalid use of `restrict'
The restrict declarations are wrong - compare these declarations with
the other declarations of lio_listio and aio_suspend.
The patch is necessary for glibc 2.1.3 and glibc 2.2.
Andreas
1999-12-16 Andreas Jaeger <aj@suse.de>
* rt/aio.h: Remove erroneous __restrict declarations.
============================================================
Index: rt/aio.h
--- rt/aio.h 1999/10/09 21:23:31 1.9
+++ rt/aio.h 1999/12/16 17:28:17
@@ -170,7 +170,7 @@
aio_write64);
extern int __REDIRECT (lio_listio,
- (int __mode, struct aiocb *__const __restrict __list[],
+ (int __mode, struct aiocb *__const __list[],
int __nent, struct sigevent *__restrict __sig) __THROW,
lio_listio64);
@@ -184,7 +184,7 @@
aio_cancel64);
extern int __REDIRECT (aio_suspend,
- (__const struct aiocb *__const __restrict __list[],
+ (__const struct aiocb *__const __list[],
int __nent,
__const struct timespec *__restrict __timeout) __THROW,
aio_suspend64);
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
More information about the Libc-hacker
mailing list