[vlc-devel] [PATCH] fsstorage: missing #include

KO Myung-Hun komh78 at gmail.com
Sat Feb 22 09:23:44 CET 2014


-----
  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
-----
---
 modules/misc/addons/fsstorage.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/misc/addons/fsstorage.c b/modules/misc/addons/fsstorage.c
index 6bdcacb..48f8c8c 100644
--- a/modules/misc/addons/fsstorage.c
+++ b/modules/misc/addons/fsstorage.c
@@ -40,6 +40,8 @@
 #include <sys/stat.h>
 #include <errno.h>
 
+#include <unistd.h>     // getpid()
+
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
-- 
1.7.3.2




More information about the vlc-devel mailing list