]> git.droids-corp.org - dpdk.git/blobdiff - mk/target/generic/rte.vars.mk
build: enable BSD features visibility for FreeBSD
[dpdk.git] / mk / target / generic / rte.vars.mk
index 25a578ad7aa5afa0c88f283c7fd7fb7a942c9bd8..5f00a0bfaf9eee178e6f208d37b8370fea3cf9bc 100644 (file)
@@ -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