diff options
author | cognet <cognet@FreeBSD.org> | 2006-11-06 22:07:47 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2006-11-06 22:07:47 +0000 |
commit | 367bc6b8e0ccf1af12ccdfff7d83ef3ec5f6be9a (patch) | |
tree | efac90a6f6eae6d12be3852a204d1a350f143b34 /lib/libstand | |
parent | 98af8dbef90060a278006bffc0b023a2dffc1dd5 (diff) | |
download | FreeBSD-src-367bc6b8e0ccf1af12ccdfff7d83ef3ec5f6be9a.zip FreeBSD-src-367bc6b8e0ccf1af12ccdfff7d83ef3ec5f6be9a.tar.gz |
Instead of re-implementing hton[ls] and friends for each arch, add a new MI
file, net/ntoh.c, which just implement them using the inline functions from
<sys/endian.h>.
Suggested by: bde
Diffstat (limited to 'lib/libstand')
-rw-r--r-- | lib/libstand/Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile index c6cee39..a06cf51 100644 --- a/lib/libstand/Makefile +++ b/lib/libstand/Makefile @@ -37,13 +37,9 @@ SRCS+= zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \ # private (pruned) versions of libc string functions SRCS+= strcasecmp.c -# byte order functions from libc -.if ${MACHINE_ARCH} != "amd64" -.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/net -.else -.PATH: ${.CURDIR}/../libc/i386/net -.endif -SRCS+= htons.S ntohs.S htonl.S ntohl.S +.PATH: ${.CURDIR}/../libc/net + +SRCS+= ntoh.c # string functions from libc .PATH: ${.CURDIR}/../libc/string |