[vlc-devel] [PATCH v3 11/19] keystore: nacl: Include fcntl.h for flock
Dennis Hamester
dhamester at jusst.de
Mon Mar 20 17:57:28 CET 2017
From: Julian Scheel <julian at jusst.de>
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