summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-16 19:46:38 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-16 19:46:38 +0000
commit2986a63f7e513cf37f46db9f211b77071260031f (patch)
tree9a6e62602396938ea5a612420f53ebf267e8d941 /x2p
parent87b11a197a59fac210fc9265bde0ef1ffe36de89 (diff)
downloadperl-2986a63f7e513cf37f46db9f211b77071260031f.tar.gz
NetWare port from Guruprasad S <SGURUPRASAD@novell.com>.
p4raw-id: //depot/perl@10643
Diffstat (limited to 'x2p')
-rw-r--r--x2p/a2py.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/x2p/a2py.c b/x2p/a2py.c
index 1b1d00ebab..d4cb59f431 100644
--- a/x2p/a2py.c
+++ b/x2p/a2py.c
@@ -8,10 +8,13 @@
* $Log: a2py.c,v $
*/
-#if defined(OS2) || defined(WIN32)
+#if defined(OS2) || defined(WIN32) || defined(NETWARE)
#if defined(WIN32)
#include <io.h>
#endif
+#if defined(NETWARE)
+#include "../netware/clibstuf.h"
+#endif
#include "../patchlevel.h"
#endif
#include "util.h"
@@ -29,7 +32,7 @@ int oper4(int type, int arg1, int arg2, int arg3, int arg4);
int oper5(int type, int arg1, int arg2, int arg3, int arg4, int arg5);
STR *walk(int useval, int level, register int node, int *numericptr, int minprec);
-#if defined(OS2) || defined(WIN32)
+#if defined(OS2) || defined(WIN32) || defined(NETWARE)
static void usage(void);
static void
@@ -55,6 +58,10 @@ main(register int argc, register char **argv, register char **env)
int i;
STR *tmpstr;
+ #ifdef NETWARE
+ fnInitGpfGlobals(); // For importing the CLIB calls in place of Watcom calls
+ #endif /* NETWARE */
+
myname = argv[0];
linestr = str_new(80);
str = str_new(0); /* first used for -I flags */
@@ -90,7 +97,7 @@ main(register int argc, register char **argv, register char **env)
case 0:
break;
default:
-#if defined(OS2) || defined(WIN32)
+#if defined(OS2) || defined(WIN32) || defined(NETWARE)
fprintf(stderr, "Unrecognized switch: %s\n",argv[0]);
usage();
#else
@@ -103,7 +110,7 @@ main(register int argc, register char **argv, register char **env)
/* open script */
if (argv[0] == Nullch) {
-#if defined(OS2) || defined(WIN32)
+#if defined(OS2) || defined(WIN32) || defined(NETWARE)
if ( isatty(fileno(stdin)) )
usage();
#endif