summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/libarchive/archive_entry.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-11-01 17:41:17 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-11-01 17:41:17 (GMT)
commit8ba2a4040484d0aa1be26ad8fde3d7109a7c2fb1 (patch)
tree735641b93f1534495f0d512d42ec02617532497f /Utilities/cmlibarchive/libarchive/archive_entry.h
parente2d9595ae9adb0a7446b186b19d52099eceb7d41 (diff)
downloadCMake-8ba2a4040484d0aa1be26ad8fde3d7109a7c2fb1.zip
CMake-8ba2a4040484d0aa1be26ad8fde3d7109a7c2fb1.tar.gz
CMake-8ba2a4040484d0aa1be26ad8fde3d7109a7c2fb1.tar.bz2
Fixes for borland, compiles with lots of warnings, but compiles, might fix vs70 again too.
Diffstat (limited to 'Utilities/cmlibarchive/libarchive/archive_entry.h')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_entry.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_entry.h b/Utilities/cmlibarchive/libarchive/archive_entry.h
index 9fddd81..c0b398c 100644
--- a/Utilities/cmlibarchive/libarchive/archive_entry.h
+++ b/Utilities/cmlibarchive/libarchive/archive_entry.h
@@ -46,14 +46,18 @@
/* Get appropriate definitions of standard POSIX-style types. */
/* These should match the types used in 'struct stat' */
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__BORLANDC__)
#define __LA_INT64_T __int64
#define __LA_UID_T short
#define __LA_GID_T short
#define __LA_DEV_T unsigned int
#define __LA_MODE_T unsigned short
#else
-#include <unistd.h>
+#ifdef __BORLANDC__
+# include <sys/types.h>
+#else
+# include <unistd.h>
+#endif
#define __LA_INT64_T int64_t
#define __LA_UID_T uid_t
#define __LA_GID_T gid_t