summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-15 16:46:09 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-15 16:46:09 -0800
commitd3896c7c307b6f019289890f24cb6b86fe57d58f (patch)
tree819a7d9f92a27aef231ba7d630f55968c830e3e0
parent979ae4f3613e66cca5c9fe249508907283fe00bb (diff)
unifdef __UNIXOS2__
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--lex.l2
-rw-r--r--tests.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/lex.l b/lex.l
index ff7904f..0bd1606 100644
--- a/lex.l
+++ b/lex.l
@@ -10,7 +10,7 @@
#include <stdlib.h>
#include "gram.h"
#include "constants.h"
-#if defined(FLEX_SCANNER) && !defined(YY_FLEX_LEX_COMPAT) && !defined(__UNIXOS2__)
+#if defined(FLEX_SCANNER) && !defined(YY_FLEX_LEX_COMPAT)
int yylineno;
#endif
%}
diff --git a/tests.c b/tests.c
index 7c263eb..820212f 100644
--- a/tests.c
+++ b/tests.c
@@ -42,7 +42,7 @@ timer(int flag)
#if !defined(SYSV)
static struct timeval starttime; /* starting time for gettimeofday() */
struct timeval endtime; /* ending time for gettimeofday() */
-#if !defined(__UNIXOS2__) && !defined(QNX4)
+#if !defined(QNX4)
static struct rusage startusage; /* starting time for getrusage() */
struct rusage endusage; /* ending time for getrusage() */
#endif
@@ -53,13 +53,13 @@ timer(int flag)
switch (flag) {
case StartTimer: /* store initial values */
gettimeofday(&starttime,&tz);
-#if !defined(__UNIXOS2__) && !defined(QNX4)
+#if !defined(QNX4)
getrusage(RUSAGE_SELF,&startusage);
#endif
return((long) NULL);
case EndTimer:
gettimeofday(&endtime,&tz); /* store final values */
-#if !defined(__UNIXOS2__) && !defined(QNX4)
+#if !defined(QNX4)
getrusage(RUSAGE_SELF,&endusage);
#endif
@@ -67,7 +67,7 @@ timer(int flag)
elapsed time = ending time - starting time, but there are three
different timers and two different units of time, ack... */
-#if !defined(__UNIXOS2__) && !defined(QNX4)
+#if !defined(QNX4)
elapsedtime = (long) ((long)
((endtime.tv_sec - endusage.ru_utime.tv_sec - endusage.ru_stime.tv_sec
- starttime.tv_sec + startusage.ru_utime.tv_sec