]> git.sesse.net Git - vlc/commitdiff
fsstorage: missing #include
authorKO Myung-Hun <komh78@gmail.com>
Sat, 22 Feb 2014 08:23:44 +0000 (17:23 +0900)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Feb 2014 09:55:58 +0000 (10:55 +0100)
-----
  CC       addons/fsstorage.lo
addons/fsstorage.c: In function 'WriteCatalog':
addons/fsstorage.c:543:5: error: implicit declaration of function 'getpid' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make.exe[5]: *** [addons/fsstorage.lo] Error 1
-----

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/misc/addons/fsstorage.c

index 6bdcacb9f922e2bd2cca224c5ed5a5919ff31692..48f8c8cb8a09a3f56788d34724901a4edf765b97 100644 (file)
@@ -40,6 +40,8 @@
 #include <sys/stat.h>
 #include <errno.h>
 
+#include <unistd.h>     // getpid()
+
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/