diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-25 22:06:56 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-25 22:06:56 +0000 |
commit | b980942d8b8cc852140b7d8cb64b0c0815c149b5 (patch) | |
tree | a53367edb6ba7c1c69bf95352e3c5b766365a1d5 /lib/libc/net/htons.c | |
parent | d18d18cf5ea7a4b8b9420f1dcab6ecc317fe9fd8 (diff) |
Pull in prototypes
Do the right thing in presense of __STDC__
Diffstat (limited to 'lib/libc/net/htons.c')
-rw-r--r-- | lib/libc/net/htons.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |