浏览代码

Added Posix names

ceriel 29 年之前
父节点
当前提交
94d63a8d57
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      util/arch/archiver.c

+ 12 - 0
util/arch/archiver.c

@@ -70,6 +70,18 @@ typedef char BOOL;
 #define S_ISDIR(m)	(m & S_IFDIR)		/* is a directory */
 #endif
 
+/* Use Posix names if old-fashioned names are not defined. */
+
+#ifndef S_IREAD
+#define S_IREAD S_IRUSR
+#endif
+#ifndef S_IWRITE
+#define S_IWRITE S_IWUSR
+#endif
+#ifndef S_IEXEC
+#define S_IEXEC S_IXUSR
+#endif
+
 BOOL verbose;
 BOOL app_fl;
 BOOL ex_fl;