diff options
author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2016-12-19 17:18:18 +0200 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2022-09-16 01:25:30 +0000 |
commit | c5653a03418879613ee8dbcf123da2b118bcd63f (patch) | |
tree | ecb48364c226a07013ddbf87f7fbd009787ddc11 /include | |
parent | a62eac97f954c6e025fb1d45e7c289d14aca2305 (diff) | |
download | libnl-tiny-c5653a03418879613ee8dbcf123da2b118bcd63f.tar.gz |
libnl-tiny: define _GNU_SOURCE if not defined
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-local.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink-local.h b/include/netlink-local.h index 330100e..53da8ca 100644 --- a/include/netlink-local.h +++ b/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> |