]> pilppa.com Git - libplp.git/commitdiff
include unistd
authorMika Laitio <lamikr@pilppa.org>
Sun, 11 Aug 2013 21:14:52 +0000 (00:14 +0300)
committerMika Laitio <lamikr@pilppa.org>
Sun, 11 Aug 2013 21:16:43 +0000 (00:16 +0300)
build fixes for mageia 3.
Include unisdt when using access method or
F_OK.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/FileUtil.cc
src/Store.cc
src/StoreCache.cc

index 8b905e6729d4958dad96ff74303a83991133f3eb..630d56615f4af0c28f2ad4eb921f7ab3be7174bb 100644 (file)
@@ -15,6 +15,7 @@
 #include <string.h>
 #include <sys/stat.h>
 #include <stdbool.h>
+#include <unistd.h>
 
 #include "log.h"
 #include "FileUtil.hh"
index ba29ed17cc66050b2f0ae15e3188df384b97279b..d481e6f821f7cf3d8351f84e89aaf3e718f23849 100644 (file)
@@ -6,6 +6,8 @@
  */
 #include <fstream>
 
+#include <unistd.h>
+
 #include "log.h"
 #include "Store.hh"
 
index d95c9fb0fdf72cc74610df68cc1793825f7b7427..8a9952a9394ac08f84f3b5cd4dd2525ee438f82d 100644 (file)
@@ -7,6 +7,8 @@
 #include <sstream>
 #include <fstream>
 
+#include <unistd.h>
+
 #include "log.h"
 #include "Store.hh"
 #include "StoreCache.hh"