[OpenWrt-Devel] [PATCH] libubus: fix build; add _GNU_SOURCE for O_CLOEXEC

Alexandru Ardelean ardeleanalex at gmail.com
Mon Sep 15 07:26:13 EDT 2014


---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb2f420..2d322a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,7 @@ SET(UBUS_MAX_MSGLEN 1048576)
 
 ADD_DEFINITIONS( -DUBUS_UNIX_SOCKET="${UBUS_UNIX_SOCKET}")
 ADD_DEFINITIONS( -DUBUS_MAX_MSGLEN=${UBUS_MAX_MSGLEN})
+ADD_DEFINITIONS( -D_GNU_SOURCE )
 
 IF(APPLE)
   INCLUDE_DIRECTORIES(/opt/local/include)
-- 
1.8.4.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list