diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-25 15:53:39 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-25 15:53:39 +0000 |
commit | 7453e503fe10e447ad852375bf2beb2aae0cd86d (patch) | |
tree | 44ab492c56d73128008b028f73c18144a74de277 /test/bbackupd | |
parent | bbe43660740a2f6fc52bf9a2003f269dee04978d (diff) |
Only include headers on systems which have them
Diffstat (limited to 'test/bbackupd')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index ecc942b9..385269a2 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -9,22 +9,33 @@ #include "Box.h" -#include <dirent.h> +// do not include MinGW's dirent.h on Win32, +// as we override some of it in lib/win32. + +#ifndef WIN32 + #include <dirent.h> +#endif + #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <limits.h> #include <string.h> -#include <sys/wait.h> #include <unistd.h> + +#ifdef HAVE_SYS_WAIT_H + #include <sys/wait.h> +#endif + #ifdef HAVE_SYS_XATTR_H -#include <cerrno> -#include <sys/xattr.h> + #include <cerrno> + #include <sys/xattr.h> #endif + #include <map> #ifdef HAVE_SYSCALL -#include <sys/syscall.h> + #include <sys/syscall.h> #endif #include "Test.h" |