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/libc/net/Makefile.inc | |
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/libc/net/Makefile.inc')
-rw-r--r-- | lib/libc/net/Makefile.inc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc index eadbb08..0df7433 100644 --- a/lib/libc/net/Makefile.inc +++ b/lib/libc/net/Makefile.inc @@ -2,16 +2,16 @@ # $FreeBSD$ # machine-independent net sources -.PATH: ${.CURDIR}/${MACHINE_ARCH}/net ${.CURDIR}/net +.PATH: ${.CURDIR}/net -SRCS+= addr2ascii.c ascii2addr.c base64.c ether_addr.c eui64.c \ +SRCS+= addr2ascii.c ascii2addr.c base64.c ether_addr.c eui64.c \ gai_strerror.c getaddrinfo.c \ gethostbydns.c gethostbyht.c gethostbynis.c gethostnamadr.c \ getifaddrs.c getifmaddrs.c getnameinfo.c \ getnetbydns.c getnetbyht.c getnetbynis.c getnetnamadr.c \ getproto.c getprotoent.c getprotoname.c getservent.c \ if_indextoname.c if_nameindex.c if_nametoindex.c \ - ip6opt.c linkaddr.c map_v4v6.c name6.c \ + ip6opt.c linkaddr.c map_v4v6.c name6.c ntoh.c \ nsdispatch.c nslexer.c nsparser.c nss_compat.c \ rcmd.c rcmdsh.c recv.c rthdr.c send.c sockatmark.c vars.c @@ -42,11 +42,6 @@ nslexer.c: nslexer.l nsparser.h ${LEX} ${LFLAGS} -o/dev/stdout ${.IMPSRC} | \ sed -e '/YY_BUF_SIZE/s/16384/1024/' >${.TARGET} -# machine-dependent net sources -.if exists(${.CURDIR}/${MACHINE_ARCH}/net/Makefile.inc) -.include "${.CURDIR}/${MACHINE_ARCH}/net/Makefile.inc" -.endif - MAN+= addr2ascii.3 byteorder.3 ethers.3 eui64.3 \ getaddrinfo.3 gai_strerror.3 gethostbyname.3 \ getifaddrs.3 getifmaddrs.3 getipnodebyname.3 \ |