use alternate argument syntax for restrict with lio_listio
for some reason I have not been able to determine, gcc 3.2 rejects the array notation. this seems to be a gcc bug, but since it's easy to work around, let's do the workaround and avoid gratuitously requiring newer compilers.
This commit is contained in:
parent
7aa73925e7
commit
b427c82265
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ static void *wait_thread(void *p)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int lio_listio(int mode, struct aiocb *restrict const cbs[restrict], int cnt, struct sigevent *restrict sev)
|
int lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, struct sigevent *restrict sev)
|
||||||
{
|
{
|
||||||
int i, ret;
|
int i, ret;
|
||||||
struct lio_state *st=0;
|
struct lio_state *st=0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue