[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704598: libc0.1-dev: sys/mount.h requires C99



Package: libc0.1-dev
Version: 2.13-38
Severity: normal

Hi,

currently, using sys/mount.h provided on kFreeBSD by glibc requires
compiling it with C99.

Basically, compiling a very tiny test case like:
vvvvvvvvvvv
#include <sys/mount.h>

int main(){return 0;}
^^^^^^^^^^
$ gcc -D_BSD_SOURCE -std=c90 -o mount mount.c
In file included from mount.c:1:0:
/usr/include/i386-kfreebsd-gnu/sys/mount.h:389:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

while it succeeds when using -std=c99 (or equivalents).

-- 
Pino


Reply to: