]> git.sesse.net Git - vlc/commitdiff
lua: fix compilation
authorKO Myung-Hun <komh78@gmail.com>
Wed, 26 Jun 2013 12:41:23 +0000 (21:41 +0900)
committerRafaël Carré <funman@videolan.org>
Wed, 26 Jun 2013 15:53:45 +0000 (17:53 +0200)
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@videolan.org>
modules/lua/intf.c

index 6e34caf70aa5e26824b3c01035b01a6e8650426a..03c6cefb901ce85d36b229d904de6895b603de8c 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <unistd.h>
 
 #include <vlc_common.h>
 #include <vlc_interface.h>