[vlc-commits] lua: fix compilation

KO Myung-Hun git at videolan.org
Tue Jul 2 11:53:37 CEST 2013


vlc/vlc-2.1 | branch: master | KO Myung-Hun <komh78 at gmail.com> | Wed Jun 26 21:41:23 2013 +0900| [897d64c1f5b558a254861bd462037fe3a76f1fae] | 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>
(cherry picked from commit 6eb6e32d5a52deb92ce25dd8245510e216c3edaf)

Signed-off-by: KO Myung-Hun <komh at chollian.net>
Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=897d64c1f5b558a254861bd462037fe3a76f1fae
---

 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