summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2000-12-31 09:41:26 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2000-12-31 09:41:26 +0000
commit568ad336973732c4d3fa134b7dcb8e82359c1f11 (patch)
treee933e73318f4e7ba6da82f47a62c62bfbb723ad3 /os2
parent7948272db9c63907ea8e92fdd3436cdaab2f9cce (diff)
downloadperl-568ad336973732c4d3fa134b7dcb8e82359c1f11.tar.gz
Ilya's OS2 patch (testing for damage on Win32)
p4raw-id: //depot/perlio@8280
Diffstat (limited to 'os2')
-rw-r--r--os2/os2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os2/os2.c b/os2/os2.c
index b244716f2f..7fe8113588 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -1162,10 +1162,13 @@ tcp1(char *name, int arg)
((void (*)(int)) fcn) (arg);
}
+#ifndef HAS_GETHOSTENT /* Older versions of EMX did not have it... */
void * gethostent() { return tcp0("GETHOSTENT"); }
void * getnetent() { return tcp0("GETNETENT"); }
void * getprotoent() { return tcp0("GETPROTOENT"); }
void * getservent() { return tcp0("GETSERVENT"); }
+#endif
+
void sethostent(x) { tcp1("SETHOSTENT", x); }
void setnetent(x) { tcp1("SETNETENT", x); }
void setprotoent(x) { tcp1("SETPROTOENT", x); }