Bug 159563
Summary: | gcc with -std=c99 option fails to find some function in "unistd.h" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jianqin Qu <jqu> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-06-04 10:27:24 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jianqin Qu
2005-06-04 10:08:54 UTC
By using -std=c99, you select strict ISO C99 namespace. getdtablesize is only provided in BSD and X/Open namespaces. When -std=c99 is not given, the default is BSD and SVID namespace and therefore getdtablesize has a prototype. If you want the getdtablesize prototype provided also with -std=c99, you need to select some namespace that includes it. So e.g. -std=c99 -D_GNU_SOURCE -std=c99 -D_BSD_SOURCE -std=c99 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -std=c99 -D_XOPEN_SOURCE=500 -std=c99 -D_XOPEN_SOURCE=600 -std=gnu99 depending on which standard your program attempts to conform to. See info libc on Feature Test Macros. |