[vlc-commits] fsstorage: missing #include

KO Myung-Hun git at videolan.org
Sat Feb 22 10:56:12 CET 2014


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Sat Feb 22 17:23:44 2014 +0900| [fc5a99b96abdc728a9cdc541f84d69900312dd85] | committer: Jean-Baptiste Kempf

fsstorage: missing #include

-----
  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 at videolan.org>

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

 modules/misc/addons/fsstorage.c |    2 ++
 1 file changed, 2 insertions(+)

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
  *****************************************************************************/



More information about the vlc-commits mailing list