[vlc-devel] [PATCH 06/15] configure: Define posix/open macros for nacl builds
Julian Scheel
julian at jusst.de
Wed Mar 8 15:55:23 CET 2017
Defining _XOPEN_SOURCE and POSIX_C_SOURCE is required to enable several
newlib functions like strdup.
Signed-off-by: Julian Scheel <julian at jusst.de>
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 1e85fcdbf8..b1cf33cf40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -297,6 +297,10 @@ case "${host_os}" in
AC_LIBOBJ([freeaddrinfo])
AC_LIBOBJ([gai_strerror])
;;
+ *nacl*)
+ SYS=nacl
+ AC_DEFINE([_XOPEN_SOURCE], [700], [POSIX and XPG 7th edition])
+ ;;
*)
SYS="${host_os}"
;;
--
2.12.0
More information about the vlc-devel
mailing list