bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] [PATCH 1/5] Define _S_IFDIR and _S_IRWXU on EMX


From: KO Myung-Hun
Subject: [bug-gawk] [PATCH 1/5] Define _S_IFDIR and _S_IRWXU on EMX
Date: Mon, 22 Sep 2014 17:38:05 +0900

EMX does not have _S_IFDIR and _S_IRWXU but S_IFDIR and S_IRWXU.
---
 io.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/io.c b/io.c
index 7930904..40e9783 100644
--- a/io.c
+++ b/io.c
@@ -110,6 +110,14 @@
 
 #ifdef __EMX__
 #include <process.h>
+
+#if !defined(_S_IFDIR) && defined(S_IFDIR)
+#define _S_IFDIR       S_IFDIR
+#endif
+
+#if !defined(_S_IRWXU) && defined(S_IRWXU)
+#define _S_IRWXU       S_IRWXU
+#endif
 #endif
 
 #ifndef ENFILE
-- 
1.7.3.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]