projects
/
project
/
libnl-tiny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b994b0
)
libnl-tiny: define _GNU_SOURCE if not defined
author
Alexandru Ardelean
<ardeleanalex@gmail.com>
Mon, 19 Dec 2016 15:18:18 +0000
(17:18 +0200)
committer
John Crispin
<john@phrozen.org>
Tue, 20 Dec 2016 08:35:36 +0000
(09:35 +0100)
If _GNU_SOURCE was added as part of a package's TARGET_CFLAGS,
then compilation would fail for that module (especially if
warnings get treated as errors).
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
src/include/netlink-local.h
patch
|
blob
|
history
diff --git
a/src/include/netlink-local.h
b/src/include/netlink-local.h
index 330100e805dd40b6a1f4049d29455bf548f1f0de..53da8ca97e40afa62243ca29aa7f5ea20e17fbdd 100644
(file)
--- a/
src/include/netlink-local.h
+++ b/
src/include/netlink-local.h
@@
-11,7
+11,9
@@
#ifndef NETLINK_LOCAL_H_
#define NETLINK_LOCAL_H_
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <errno.h>