Eliminate _BSD_SOURCE and _SVID_SOURCE deprecation warning
Because all warnings are treated as errors and this warning is emitted: warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" the build fails. The fix is to define _DEFAULT_SOURCE in lasso/xml/tools.c The effect of defining the _DEFAULT_SOURCE macro is equivalent to the effect of explicitly defining three macros in earlier glibc versions: -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809C Signed-off-by: John Dennis <jdennis@redhat.com> License: MIT
This commit is contained in:
parent
eb6ed4f85a
commit
a7f6219f5a
|
@ -21,6 +21,12 @@
|
|||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* The effect of defining the _DEFAULT_SOURCE macro is equivalent to
|
||||
* the effect of explicitly defining three macros in earlier glibc
|
||||
* versions: -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809C
|
||||
*/
|
||||
#define _DEFAULT_SOURCE
|
||||
/* permit importation of strptime for glibc2 */
|
||||
#define _XOPEN_SOURCE
|
||||
/* permit importation of timegm for glibc2, wait for people to complain it does not work on their
|
||||
|
|
Loading…
Reference in New Issue