[vlc-commits] lua: fix compilation

KO Myung-Hun git at videolan.org
Wed Jun 26 17:54:01 CEST 2013


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Wed Jun 26 21:41:23 2013 +0900| [6eb6e32d5a52deb92ce25dd8245510e216c3edaf] | committer: Rafaël Carré

lua: fix compilation

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'
----

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6eb6e32d5a52deb92ce25dd8245510e216c3edaf
---

 modules/lua/intf.c |    1 +
 1 file changed, 1 insertion(+)

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>



More information about the vlc-commits mailing list