浏览代码

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 <[email protected]>
Alexandru Ardelean 8 年之前
父节点
当前提交
3c1f20d0bb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      package/libs/libnl-tiny/src/include/netlink-local.h

+ 2 - 0
package/libs/libnl-tiny/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>