git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build: enable BSD features visibility for FreeBSD
[dpdk.git]
/
mk
/
target
/
generic
/
rte.vars.mk
diff --git
a/mk/target/generic/rte.vars.mk
b/mk/target/generic/rte.vars.mk
index
25a578a
..
5f00a0b
100644
(file)
--- a/
mk/target/generic/rte.vars.mk
+++ b/
mk/target/generic/rte.vars.mk
@@
-111,6
+111,11
@@
endif
# always define _GNU_SOURCE
CFLAGS += -D_GNU_SOURCE
+# define __BSD_VISIBLE when building for FreeBSD
+ifeq ($(CONFIG_RTE_EXEC_ENV_FREEBSD),y)
+CFLAGS += -D__BSD_VISIBLE
+endif
+
export CFLAGS
export LDFLAGS