about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-05-21T11·17+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-05-21T11·17+0000
commitbd955e15e1aac8a1490a680b9f5cfcce29f2331a (patch)
treef56e21d3608bb14ae3ca89e2ddc6c7c887bfbd85 /src/libstore
parent9819bb20da130509ab62f303267331c2403b043c (diff)
* GCC 4.3.0 (Fedora 9) compatibility fixes. Reported by Gour and
  Armijn Hemel.

Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/pathlocks.cc1
-rw-r--r--src/libstore/pathlocks.hh2
-rw-r--r--src/libstore/references.cc2
3 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/pathlocks.cc b/src/libstore/pathlocks.cc
index 9d582206dbb9..df1f0b1e3831 100644
--- a/src/libstore/pathlocks.cc
+++ b/src/libstore/pathlocks.cc
@@ -2,6 +2,7 @@
 #include "util.hh"
 
 #include <cerrno>
+#include <cstdlib>
 
 #include <sys/types.h>
 #include <sys/stat.h>
diff --git a/src/libstore/pathlocks.hh b/src/libstore/pathlocks.hh
index 0ca1ce687849..8b4100028f0b 100644
--- a/src/libstore/pathlocks.hh
+++ b/src/libstore/pathlocks.hh
@@ -17,7 +17,7 @@ int openLockFile(const Path & path, bool create);
 void deleteLockFilePreClose(const Path & path, int fd);
 void deleteLockFilePostClose(const Path & path);
 
-typedef enum LockType { ltRead, ltWrite, ltNone };
+enum LockType { ltRead, ltWrite, ltNone };
 
 bool lockFile(int fd, LockType lockType, bool wait);
 
diff --git a/src/libstore/references.cc b/src/libstore/references.cc
index 19cb288bdd6b..bfb4f8d0a3af 100644
--- a/src/libstore/references.cc
+++ b/src/libstore/references.cc
@@ -3,6 +3,8 @@
 #include "util.hh"
 
 #include <cerrno>
+#include <cstring>
+#include <cstdlib>
 #include <map>
 
 #include <sys/types.h>