Summary: | sched.h should define pid_t | ||
---|---|---|---|
Product: | glibc | Reporter: | Bruno Haible <bruno> |
Component: | libc | Assignee: | Ulrich Drepper <drepper.fsp> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aj, eblake |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | 2.11 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Bruno Haible
2011-09-18 21:22:00 UTC
This appears to be fixed by at least glibc 2.13: $ printf '#include<sched.h>\n' | gcc -E - | grep pid_t | head -n2 typedef int __pid_t; typedef __pid_t pid_t; $ printf '#define _POSIX_C_SOURCE 200809L\n#include<sched.h>\n' \ | gcc -E - | grep pid_t | head -n2 typedef int __pid_t; typedef __pid_t pid_t; This is fixed in current glibc (tested 2.14). |