summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-06-03 22:28:54 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-06-03 22:28:54 -0700
commit01a023d7078f3325f626e8d499307b0d92eef64d (patch)
treecfd3573040b324a52cd96d1d1765c234e107a85b
parent8a051c45632ee88a4ca0ca492fe8c5cae4b71299 (diff)
unifdef -U__UNIXOS2__
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xrdb.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/xrdb.c b/xrdb.c
index 7475446..09422ef 100644
--- a/xrdb.c
+++ b/xrdb.c
@@ -65,12 +65,7 @@
#define SCREEN_RESOURCES "SCREEN_RESOURCES"
#ifndef CPP
-#ifdef __UNIXOS2__
-/* expected to be in path */
-#define CPP "cpp"
-#else
#define CPP "/usr/lib/cpp"
-#endif /* __UNIXOS2__ */
#endif /* CPP */
#define INIT_BUFFER_SIZE 10000
@@ -1012,15 +1007,8 @@ main(int argc, char *argv[])
strcpy(tmpname2, "xrdbD_XXXXXX");
strcpy(tmpname3, "\\temp\\xrdbD_XXXXXX");
#else
-#ifdef __UNIXOS2__
- { char *tmpdir=getenv("TMP");
- if (!tmpdir) tmpdir="/";
- sprintf(tmpname2, "%s/xrdbD_XXXXXX",tmpdir);
- }
-#else
strcpy(tmpname2, "/tmp/xrdbD_XXXXXX");
#endif
-#endif
(void) mktemp(tmpname2);
}
#endif
@@ -1037,15 +1025,8 @@ main(int argc, char *argv[])
#ifdef WIN32
strcpy(tmpname, "\\temp\\xrdb_XXXXXX");
#else
-#ifdef __UNIXOS2__
- { char *tmpdir=getenv("TMP");
- if (!tmpdir) tmpdir="/";
- sprintf(tmpname, "%s/xrdb_XXXXXX",tmpdir);
- }
-#else
strcpy(tmpname, "/tmp/xrdb_XXXXXX");
#endif
-#endif
#ifndef HAVE_MKSTEMP
(void) mktemp(tmpname);
filename = tmpname;