Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vcl: better handlig of ldp apis that rely on gnu source
[vpp.git]
/
src
/
vcl
/
CMakeLists.txt
diff --git
a/src/vcl/CMakeLists.txt
b/src/vcl/CMakeLists.txt
index
e6d8f98
..
610b422
100644
(file)
--- a/
src/vcl/CMakeLists.txt
+++ b/
src/vcl/CMakeLists.txt
@@
-30,6
+30,11
@@
add_vpp_library(vppcom
api_headers
)
+option(LDP_HAS_GNU_SOURCE "LDP configured to use _GNU_SOURCE" ON)
+if (LDP_HAS_GNU_SOURCE)
+ add_compile_definitions(HAVE_GNU_SOURCE)
+endif(LDP_HAS_GNU_SOURCE)
+
add_vpp_library(vcl_ldpreload
SOURCES
ldp_socket_wrapper.c