소스 검색

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;