mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
all: a few more #define tricks for AIX
This should make the AIX build finally work. Fixes #400.
This commit is contained in:
parent
d32deab17b
commit
1f098efb73
2 changed files with 36 additions and 0 deletions
|
@ -9,6 +9,9 @@
|
|||
#undef warn
|
||||
#define warn samwarn
|
||||
|
||||
#undef class
|
||||
#define class samclass
|
||||
|
||||
/*
|
||||
* BLOCKSIZE is relatively small to keep memory consumption down.
|
||||
*/
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue