From: Chanho Park Date: Fri, 12 Sep 2014 03:10:31 +0000 (+0900) Subject: define _DEFAULT_SOURCE for glibc-2.20 X-Git-Tag: tizen_3.0.2014.q3_common_release X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Ftizen_3.0.2014.q3_common_release;p=platform%2Fupstream%2Fsyslinux.git define _DEFAULT_SOURCE for glibc-2.20 _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 Change-Id: I13ae76387805fc8844f68dd564a86945bb5fa1cd Signed-off-by: Chanho Park --- diff --git a/dos/getsetsl.c b/dos/getsetsl.c index 67e954d..267a081 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 #include #include diff --git a/libinstaller/fs.c b/libinstaller/fs.c index 179629e..19d69d3 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 #include #include diff --git a/libinstaller/syslxmod.c b/libinstaller/syslxmod.c index c706f2c..3759f20 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 #include #include