[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
- [bug-gawk] [PATCH] OS/2 patches, KO Myung-Hun, 2014/09/22
- [bug-gawk] [PATCH 5/5] Remove *.dll and *.a as well at uninstallation, KO Myung-Hun, 2014/09/22
- [bug-gawk] [PATCH 2/5] Rename getopt() on kLIBC, KO Myung-Hun, 2014/09/22
- [bug-gawk] [PATCH 3/5] Implement init_sockets() on EMX, KO Myung-Hun, 2014/09/22
- [bug-gawk] [PATCH 4/5] Add $(EXEEXT) to awk at installation/uninstallation, KO Myung-Hun, 2014/09/22
- [bug-gawk] [PATCH 1/5] Define _S_IFDIR and _S_IRWXU on EMX,
KO Myung-Hun <=
- Re: [bug-gawk] [PATCH] OS/2 patches, Aharon Robbins, 2014/09/23