summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/getprotoname.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/libc/getprotoname.c')
-rw-r--r--cpukit/libnetworking/libc/getprotoname.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libnetworking/libc/getprotoname.c b/cpukit/libnetworking/libc/getprotoname.c
index 46880eb005..e21e4c4f2a 100644
--- a/cpukit/libnetworking/libc/getprotoname.c
+++ b/cpukit/libnetworking/libc/getprotoname.c
@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)getprotoname.c 8.1 (Berkeley) 6/4/93";
extern int _proto_stayopen;
+extern struct protoent *getprotobyname_static(const char *);
+
struct protoent *
getprotobyname(name)
register const char *name;
@@ -60,5 +62,8 @@ getprotobyname(name)
found:
if (!_proto_stayopen)
endprotoent();
+
+ if ( !p )
+ p = getprotobyname_static(name);
return (p);
}