diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-09-29 11:46:42 -0400 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-10-28 11:07:10 +0000 |
commit | 2f6d21d2a560cb5581694fef42ee9a350d5f302f (patch) | |
tree | 91deee816f47f02af289bde77c0ac0e7c3b220d7 | |
parent | 8821237240c5374d83298b2da5ad88fa1e3c1ef7 (diff) | |
download | syslinux-2f6d21d2a560cb5581694fef42ee9a350d5f302f.tar.gz |
define _DEFAULT_SOURCE for glibc-2.20baserock/pedroalvarez/glibc
_BSD_SOURCE was deprecated in favour of _DEFAULT_SOURCE since glibc
2.20[1]. To avoid build warning on glibc2.20, _DEFAULT_SOURCE should
also be defined.
[1]: https://sourceware.org/glibc/wiki/Release/2.20
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
_BSD_SOURCE was fist used at 1769d57c94d7a965168b72b6fd8d48251710b452
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r-- | dos/getsetsl.c | 2 | ||||
-rw-r--r-- | libinstaller/fs.c | 2 | ||||
-rw-r--r-- | libinstaller/syslxmod.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/dos/getsetsl.c b/dos/getsetsl.c index 67e954d1..267a0816 100644 --- a/dos/getsetsl.c +++ b/dos/getsetsl.c @@ -5,6 +5,8 @@ #define _XOPEN_SOURCE 500 /* Required on glibc 2.x */ #define _BSD_SOURCE +/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */ +#define _DEFAULT_SOURCE 1 #include <inttypes.h> #include <string.h> #include <stddef.h> diff --git a/libinstaller/fs.c b/libinstaller/fs.c index 179629e9..19d69d3e 100644 --- a/libinstaller/fs.c +++ b/libinstaller/fs.c @@ -18,6 +18,8 @@ #define _XOPEN_SOURCE 500 /* Required on glibc 2.x */ #define _BSD_SOURCE +/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */ +#define _DEFAULT_SOURCE 1 #include <stdio.h> #include <inttypes.h> #include <string.h> diff --git a/libinstaller/syslxmod.c b/libinstaller/syslxmod.c index c706f2c2..3759f203 100644 --- a/libinstaller/syslxmod.c +++ b/libinstaller/syslxmod.c @@ -17,6 +17,8 @@ #define _XOPEN_SOURCE 500 /* Required on glibc 2.x */ #define _BSD_SOURCE +/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */ +#define _DEFAULT_SOURCE 1 #include <stdio.h> #include <inttypes.h> #include <string.h> |