* GCC 4.3.0 (Fedora 9) compatibility fixes. Reported by Gour and

Armijn Hemel.
This commit is contained in:
Eelco Dolstra 2008-05-21 11:17:31 +00:00
parent 9819bb20da
commit bd955e15e1
11 changed files with 18 additions and 3 deletions

View file

@ -2,6 +2,7 @@
#include "util.hh"
#include <cerrno>
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>

View file

@ -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);

View file

@ -3,6 +3,8 @@
#include "util.hh"
#include <cerrno>
#include <cstring>
#include <cstdlib>
#include <map>
#include <sys/types.h>