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>
This commit is contained in:
parent
4e1f7ad56e
commit
3c1f20d0bb
1 changed files with 2 additions and 0 deletions
|
@ -11,7 +11,9 @@
|
||||||
|
|
||||||
#ifndef NETLINK_LOCAL_H_
|
#ifndef NETLINK_LOCAL_H_
|
||||||
#define NETLINK_LOCAL_H_
|
#define NETLINK_LOCAL_H_
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
Loading…
Reference in a new issue