NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/46040: Errors in spawn.h
The following reply was made to PR misc/46040; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: henning.petersen%t-online.de@localhost
Subject: Re: misc/46040: Errors in spawn.h
Date: Fri, 17 Feb 2012 18:02:39 +0100
On Fri, Feb 17, 2012 at 04:55:03PM +0000, henning petersen wrote:
> From FreeBSD spawn.h:
>
> * XXX both arrays should be __restrict, but this does not work when GCC is
> invoked with -std=c99.
Yes, I saw that, but I seems to not be true for our gcc. Note that cdefs.h
turns __restrict into restrict.
This compiles fine with "cc -Wall -O2 -std=c99 test.c" for me:
#include <string.h>
#include <spawn.h>
int main(int argc, char **argv)
{
posix_spawn(NULL, "/bin/ls", NULL, NULL, argv, NULL);
return 0;
}
What is the actual compile error you are seeing?
Martin
Home |
Main Index |
Thread Index |
Old Index