[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [PATCH 2/4] lib: define wrapper macros for OS/2
From: |
KO Myung-Hun |
Subject: |
[Bug-tar] [PATCH 2/4] lib: define wrapper macros for OS/2 |
Date: |
Fri, 29 May 2015 14:31:59 +0900 |
* lib/system.h: Define wrapper macros for OS/2
---
lib/system.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lib/system.h b/lib/system.h
index e7f531c..aa2404a 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -467,11 +467,15 @@ char *getenv ();
# include <grp.h>
#endif
-#if MSDOS
-# include <process.h>
+#if MSDOS || defined(__OS2__)
+# ifdef __OS2__
+# include <io.h> /* setmode() */
+# else
+# include <process.h>
+# define mkdir(file, mode) (mkdir) (file)
+# endif
# define SET_BINARY_MODE(arc) setmode(arc, O_BINARY)
# define ERRNO_IS_EACCES errno == EACCES
-# define mkdir(file, mode) (mkdir) (file)
# define TTY_NAME "con"
# define sys_reset_uid_gid()
#else
--
1.9.5