[vlc-devel] [PATCH v4 10/18] keystore: nacl: Include fcntl.h for flock
Julian Scheel
julian at jusst.de
Wed Mar 22 09:58:58 CET 2017
The native client environment provides flock and it's defines in
glibc-compat thorugh fcntl.h guarded by __BSD_VISIBLE. Include it as
needed.
Signed-off-by: Julian Scheel <julian at jusst.de>
---
modules/keystore/file.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/keystore/file.c b/modules/keystore/file.c
index ca91a01bf2..5a60ac1b58 100644
--- a/modules/keystore/file.c
+++ b/modules/keystore/file.c
@@ -25,6 +25,10 @@
#include <stdio.h>
#include <sys/stat.h>
#ifdef HAVE_FLOCK
+#ifdef __native_client__
+#define __BSD_VISIBLE 1
+#include <fcntl.h>
+#endif
#include <sys/file.h>
#endif
#ifdef HAVE_FCNTL
--
2.12.0
More information about the vlc-devel
mailing list