mirror of https://github.com/vitalif/e2fsprogs
Fix warnings caused by glibc 2.20
Glibc has depcreated _SVID_SOURCE and _BSD_SOURCE in favor of _DEFAULT_SOURCE. So define _DEFAULT_SOURCE to shut up glibc 2.20 Signed-off-by: Theodore Ts'o <tytso@mit.edu>maint
parent
539d3ae3da
commit
31ddef52ba
|
@ -12,6 +12,9 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#ifndef _DEFAULT_SOURCE
|
||||
#define _DEFAULT_SOURCE /* since glibc 2.20 _SVID_SOURCE is deprecated */
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
* gcc-wall wall mode
|
||||
*/
|
||||
#define _SVID_SOURCE
|
||||
#define _DEFAULT_SOURCE /* since glibc 2.20 _SVID_SOURCE is deprecated */
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#define _XOPEN_SOURCE 600 /* for inclusion of PATH_MAX in Solaris */
|
||||
#define _BSD_SOURCE /* for makedev() and major() */
|
||||
#define _DEFAULT_SOURCE /* since glibc 2.20 _BSD_SOURCE is deprecated */
|
||||
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -44,6 +44,7 @@ extern int optind;
|
|||
#include <strings.h> /* for strcasecmp() */
|
||||
#else
|
||||
#define _BSD_SOURCE /* for inclusion of strcasecmp() via <string.h> */
|
||||
#define _DEFAULT_SOURCE /* since glibc 2.20 _BSD_SOURCE is deprecated */
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
|
Loading…
Reference in New Issue