This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16632] New: Provide easy way to transition from _BSD_SOURCE/_SVID_SOURCE to _DEFAULT_SOURCE.
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 25 Feb 2014 16:03:52 +0000
- Subject: [Bug libc/16632] New: Provide easy way to transition from _BSD_SOURCE/_SVID_SOURCE to _DEFAULT_SOURCE.
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16632
Bug ID: 16632
Summary: Provide easy way to transition from
_BSD_SOURCE/_SVID_SOURCE to _DEFAULT_SOURCE.
Product: glibc
Version: 2.20
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: carlos at redhat dot com
CC: drepper.fsp at gmail dot com
Source packages that need to support both 2.19 and 2.20 will need to decide to
use _BSD_SOURCE/_SVID_SOURCE vs. _DEFAULT_SOURCE.
The difficulty in making that decision is that the __GLIBC_MINOR__ is itself
defined in features.h, but you want to set the feature macros before including
features.h.
Therefore to ease the transition we should disable the warning if
_DEFAULT_SOURCE is also defined.
The alternatives require having configure in your package and checking for the
warning and then setting an additional define to control which feature macro to
use. This is cumbersome and complicates application configuration, and doesn't
work if the application doesn't use configure.
The easiest solution is to disable the warning if _DEFAULT_SOURCE is defined,
indicating that the user has transitioned the package, but is defining the
other defines for legacy purposes. Eventually we will just ignore those
defines.
--
You are receiving this mail because:
You are on the CC list for the bug.