From b980942d8b8cc852140b7d8cb64b0c0815c149b5 Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Mon, 25 Mar 1996 22:06:56 +0000 Subject: Pull in prototypes Do the right thing in presense of __STDC__ --- lib/libc/net/htons.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libc/net/htons.c') diff --git a/lib/libc/net/htons.c b/lib/libc/net/htons.c index b2500a51d1c..9b1de6ccfcf 100644 --- a/lib/libc/net/htons.c +++ b/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