diff options
Diffstat (limited to 'newlib/libc/sys/linux/net/ns_netint.c')
-rw-r--r-- | newlib/libc/sys/linux/net/ns_netint.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/newlib/libc/sys/linux/net/ns_netint.c b/newlib/libc/sys/linux/net/ns_netint.c index 16282e5a1..18c9cccd6 100644 --- a/newlib/libc/sys/linux/net/ns_netint.c +++ b/newlib/libc/sys/linux/net/ns_netint.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996,1999 by Internet Software Consortium. + * Copyright (c) 1996 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -15,17 +15,16 @@ * SOFTWARE. */ -#if !defined(_LIBC) && !defined(lint) -static const char rcsid[] = "$BINDId: ns_netint.c,v 8.4 1999/10/13 16:39:35 vixie Exp $"; -#endif +#include <sys/cdefs.h> +#include <sys/types.h> /* Import. */ -#include <arpa/nameser.h> -#include <resolv.h> -#include "libc-symbols.h" +#include <sys/types.h> +#include <sys/socket.h> -/* Public. */ +#include <netinet/in.h> +#include <arpa/nameser.h> u_int ns_get16(const u_char *src) { @@ -34,7 +33,6 @@ ns_get16(const u_char *src) { NS_GET16(dst, src); return (dst); } -libresolv_hidden_def (ns_get16) u_long ns_get32(const u_char *src) { @@ -43,7 +41,6 @@ ns_get32(const u_char *src) { NS_GET32(dst, src); return (dst); } -libresolv_hidden_def (ns_get32) void ns_put16(u_int src, u_char *dst) { |