summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-03-04 17:20:45 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-03-04 17:20:45 +0000
commit24f8da60e89a5ed99e35a315aa20cf528ac63c0e (patch)
treecbac399e4ff85dbe8e3e73d00242ec941d4bd2ca /os2
parent8973db79328a885c91b9dfdcafdb28dbe9e65a88 (diff)
downloadperl-24f8da60e89a5ed99e35a315aa20cf528ac63c0e.tar.gz
Tweak the get*ent() OS/2 prototypes.
p4raw-id: //depot/perl@9013
Diffstat (limited to 'os2')
-rw-r--r--os2/os2.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/os2/os2.c b/os2/os2.c
index 7fe8113588..50f0e1d45e 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -1162,12 +1162,10 @@ 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
+struct hostent * gethostent() { return tcp0("GETHOSTENT"); }
+struct netent * getnetent() { return tcp0("GETNETENT"); }
+struct protoent * getprotoent() { return tcp0("GETPROTOENT"); }
+struct servent * getservent() { return tcp0("GETSERVENT"); }
void sethostent(x) { tcp1("SETHOSTENT", x); }
void setnetent(x) { tcp1("SETNETENT", x); }