commit | 7a569073b95af7532892dc726c2f33cd40edfb57 | [log] [tgz] |
---|---|---|
author | Arthur Gautier <superbaloo@gmail.com> | Sat Apr 23 17:25:20 2016 +0000 |
committer | Arthur Gautier <superbaloo@gmail.com> | Mon Apr 25 23:19:54 2016 +0000 |
tree | 0e1e4a68dcd4ce51362c3ef8f094eed5e7e60ba1 | |
parent | 9e35c09854e55973731f80dd7cc41b80c20eec42 [diff] |
Avoid warning about BSD_SOURCE on glibc >= 2.20 Commit id c941736c92fa3a319221f65f6755659b2a5e0a20 removed support for _BSD_SOURCE in favor of _DEFAULT_SOURCE. This commit introduces support for glibc >= 2.20. _BSD_SOURCE is not ignored, glibc just emits a warning and then defines _DEFAULT_SOURCE itself. The warning fails the build because of -Werror. Change-Id: I9a72ef419678ab1b76174c9481550af8954c2be4 See: https://sourceware.org/git/?p=glibc.git;a=commit;f=include/features.h;h=c941736c92fa3a319221f65f6755659b2a5e0a20 See: https://sourceware.org/git/?p=glibc.git;a=commit;f=include/features.h;h=ade40b10ff5fa59a318cf55b9d8414b758e8df78 Signed-off-by: Arthur Gautier <superbaloo@gmail.com>
diff --git a/libminijail.c b/libminijail.c index a0c4c86..06f8e1a 100644 --- a/libminijail.c +++ b/libminijail.c
@@ -4,6 +4,7 @@ */ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #define _GNU_SOURCE #include <asm/unistd.h>