This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9720] New: failure when compiling bits/resource.h with -pedantic-errors and without _GNU_SOURCE
- From: "kees at outflux dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Jan 2009 03:24:54 -0000
- Subject: [Bug libc/9720] New: failure when compiling bits/resource.h with -pedantic-errors and without _GNU_SOURCE
- Reply-to: sourceware-bugzilla at sourceware dot org
#include <stdlib.h>
#include <sys/wait.h>
int main(){
return EXIT_SUCCESS;
}
cc test.c -o test -pedantic-errors
In file included from /usr/include/sys/resource.h:25,
from /usr/include/sys/wait.h:32,
from test.c:2:
/usr/include/bits/resource.h:161: error: comma at end of enumerator list
...
RUSAGE_CHILDREN = -1,
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
#ifdef __USE_GNU
/* The calling thread. */
RUSAGE_THREAD = 1
...
The change to sysdeps/unix/sysv/linux/bits/resource.h was:
revision 1.20
date: 2008/05/01 05:37:45; author: drepper; state: Exp; lines: +9 -1
Define RUSAGE_THREAD and RUSAGE_LWP.
--
Summary: failure when compiling bits/resource.h with -pedantic-
errors and without _GNU_SOURCE
Product: glibc
Version: 2.8
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: kees at outflux dot net
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9720
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.