[vlc-devel] [PATCH] lua: fix compilation

KO Myung-Hun komh78 at gmail.com
Wed Jun 26 14:41:23 CEST 2013


Include unistd.h to fix the following error.

----
  CC       liblua_plugin_la-intf.lo
  intf.c: In function 'Start_LuaIntf':
  intf.c:372: error: implicit declaration of function 'close'
----
---
 modules/lua/intf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/lua/intf.c b/modules/lua/intf.c
index 6e34caf..03c6cef 100644
--- a/modules/lua/intf.c
+++ b/modules/lua/intf.c
@@ -30,6 +30,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <unistd.h>
 
 #include <vlc_common.h>
 #include <vlc_interface.h>
-- 
1.7.3.2




More information about the vlc-devel mailing list