Bug#441959: sysmacros.h no longer compatibile with -ansi
Package: libc6-dev
Version: 2.6.1-3
Severity: important
Compiling this simple program:
#define _GNU_SOURCE
#include <sys/types.h>
int main (void) { return 0; }
with gcc -ansi results in:
In file included from /usr/include/sys/types.h:223,
from example.c:2:
/usr/include/sys/sysmacros.h:65: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'unsigned'
/usr/include/sys/sysmacros.h:71: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'unsigned'
/usr/include/sys/sysmacros.h:77: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'unsigned'
Simple fix is to change "inline" to "__inline" for the 3 new inline
functions added in local-sysmacros.diff.
-Yosh
Reply to: