aboutsummaryrefslogtreecommitdiff
path: root/src/libdiskfs
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-08-15 20:46:23 -0400
committerRuss Cox <rsc@swtch.com>2020-08-15 20:46:23 -0400
commit1f098efb7370a0b28306d10681e21883fb1c1507 (patch)
tree0b553181b2802a5e302a7d80fee830931936efad /src/libdiskfs
parentd32deab17bfffa5bffc5fab3e6577558e40888c5 (diff)
downloadplan9port-1f098efb7370a0b28306d10681e21883fb1c1507.tar.gz
plan9port-1f098efb7370a0b28306d10681e21883fb1c1507.tar.bz2
plan9port-1f098efb7370a0b28306d10681e21883fb1c1507.zip
all: a few more #define tricks for AIX
This should make the AIX build finally work. Fixes #400.
Diffstat (limited to 'src/libdiskfs')
-rw-r--r--src/libdiskfs/hfs.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libdiskfs/hfs.h b/src/libdiskfs/hfs.h
index bf5ebc9f..dc30aeed 100644
--- a/src/libdiskfs/hfs.h
+++ b/src/libdiskfs/hfs.h
@@ -75,6 +75,39 @@ enum
/* catalog record types */
Folder = 1, File, FolderThread, FileThread,
+ /* some systems have these defined */
+ #undef IEXEC
+ #undef IWRITE
+ #undef IREAD
+ #undef ISVTX
+ #undef ISGID
+ #undef ISUID
+ #undef IFMT
+ #undef IFIFO
+ #undef IFCHR
+ #undef IFDIR
+ #undef IFBLK
+ #undef IFREG
+ #undef IFLNK
+ #undef IFSOCK
+ #undef IFWHT
+
+ #define IEXEC HFS_IEXEC
+ #define IWRITE HFS_IWRITE
+ #define IREAD HFS_IREAD
+ #define ISVTX HFS_ISVTX
+ #define ISGID HFS_ISGID
+ #define ISUID HFS_ISUID
+ #define IFMT HFS_IFMT
+ #define IFIFO HFS_IFIFO
+ #define IFCHR HFS_IFCHR
+ #define IFDIR HFS_IFDIR
+ #define IFBLK HFS_IFBLK
+ #define IFREG HFS_IFREG
+ #define IFLNK HFS_IFLNK
+ #define IFSOCK HFS_IFSOCK
+ #define IFWHT HFS_IFWHT
+
/* permissions in Inode.mode */
IEXEC = 00100,
IWRITE = 0200,