summaryrefslogtreecommitdiff
path: root/ext/phar/tar.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tar.h')
-rw-r--r--ext/phar/tar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/phar/tar.h b/ext/phar/tar.h
index 6dc1fd3127..45dc6e5c0b 100644
--- a/ext/phar/tar.h
+++ b/ext/phar/tar.h
@@ -22,9 +22,15 @@
#ifdef PHP_WIN32
#pragma pack(1)
# define PHAR_TAR_PACK
+#elif defined(__sgi)
+# define PHAR_TAR_PACK
#else
# define PHAR_TAR_PACK __attribute__((__packed__))
#endif
+
+#if defined(__sgi)
+# pragma pack 0
+#endif
/**
* the format of the header block for a file, in the older UNIX-compatible
* TAR format
@@ -46,6 +52,9 @@ typedef struct _old_tar_header { /* {{{ */
} PHAR_TAR_PACK old_tar_header;
/* }}} */
+#if defined(__sgi)
+# pragma pack 0
+#endif
/**
* the new USTAR header format.
* Note that tar can determine that the USTAR format is being used by the