bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] [paxutils: PATCH v2 2/4] lib: define wrapper macros for OS/2


From: KO Myung-Hun
Subject: [Bug-tar] [paxutils: PATCH v2 2/4] lib: define wrapper macros for OS/2
Date: Thu, 14 Jan 2016 13:13:36 +0900

From: KO Myung-Hun <address@hidden>

* 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
-- 
2.7.0




reply via email to

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