]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Port main library code to OSF operating system
authorBrad King <brad.king@kitware.com>
Wed, 21 Oct 2015 15:54:24 +0000 (11:54 -0400)
committerBrad King <brad.king@kitware.com>
Mon, 26 Oct 2015 12:59:26 +0000 (08:59 -0400)
Add preprocessor conditionals using '__osf__' as needed to build the
main library.  Do not try to port the tests or executables yet.

libarchive/archive.h
libarchive/archive_endian.h
libarchive/archive_entry.h

index 4724c0d4f6949cb75ae791afbd22bcf458957d52..676ab3fdc7d9d863a3ed0d10fbdb6a6dd79913b1 100644 (file)
@@ -51,7 +51,7 @@
  */
 #if defined(__BORLANDC__) && __BORLANDC__ >= 0x560
 # include <stdint.h>
-#elif !defined(__WATCOMC__) && !defined(_MSC_VER) && !defined(__INTERIX) && !defined(__BORLANDC__) && !defined(_SCO_DS)
+#elif !defined(__WATCOMC__) && !defined(_MSC_VER) && !defined(__INTERIX) && !defined(__BORLANDC__) && !defined(_SCO_DS) && !defined(__osf__)
 # include <inttypes.h>
 #endif
 
@@ -66,7 +66,7 @@
 typedef __int64 la_int64_t;
 # else
 # include <unistd.h>  /* ssize_t */
-#  if defined(_SCO_DS)
+#  if defined(_SCO_DS) || defined(__osf__)
 typedef long long la_int64_t;
 #  else
 typedef int64_t la_int64_t;
index a656405f104caaf37d5a2f9aecabdea315ba299c..1c48563b137d276db9e83859f40e3cf7d040ac1f 100644 (file)
@@ -53,7 +53,7 @@
 #define        inline
 #elif defined(__SUNPRO_C) && __SUNPRO_C < 0x590
 #define inline
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER) || defined(__osf__)
 #define inline __inline
 #endif
 
index 996d60f4b3aeb46c8f07142564bb3eb426f9d5ca..06740926383a3f7711f5a8b09194f482d2f2e5ec 100644 (file)
@@ -57,7 +57,7 @@
 typedef __int64 la_int64_t;
 # else
 #include <unistd.h>
-#  if defined(_SCO_DS)
+#  if defined(_SCO_DS) || defined(__osf__)
 typedef long long la_int64_t;
 #  else
 typedef int64_t la_int64_t;