From 26bf2499c42c994d91e3a86ae74b1a2d8b829c9f Mon Sep 17 00:00:00 2001 From: tholo <> Date: Mon, 25 Mar 1996 22:06:55 +0000 Subject: Pull in prototypes Do the right thing in presense of __STDC__ --- src/lib/libc/net/htons.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/libc/net/htons.c') diff --git a/src/lib/libc/net/htons.c b/src/lib/libc/net/htons.c index b2500a51d1..9b1de6ccfc 100644 --- a/src/lib/libc/net/htons.c +++ b/src/lib/libc/net/htons.c @@ -15,8 +15,12 @@ static char *rcsid = "$NetBSD: htons.c,v 1.5 1995/04/28 23:25:19 jtc Exp $"; #undef htons unsigned short +#if __STDC__ +htons(unsigned short x) +#else htons(x) unsigned short x; +#endif { #if BYTE_ORDER == LITTLE_ENDIAN u_char *s = (u_char *) &x; -- cgit v1.2.3-55-g6feb