2008-08-01 Ulrich Drepper <drepper@redhat.com>
+ * include/arpa/nameser.h (NS_GET16): Use const pointer.
+ (NS_GET32): Likewise.
+
* sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
syscalls, too.
+#ifndef _ARPA_NAMESER_H_
+
#include <resolv/arpa/nameser.h>
/* If the machine allows unaligned access we can do better than using
# undef NS_GET16
# define NS_GET16(s, cp) \
do { \
- uint16_t *t_cp = (uint16_t *) (cp); \
+ const uint16_t *t_cp = (const uint16_t *) (cp); \
(s) = ntohs (*t_cp); \
(cp) += NS_INT16SZ; \
} while (0)
# undef NS_GET32
# define NS_GET32(l, cp) \
do { \
- uint32_t *t_cp = (uint32_t *) (cp); \
+ const uint32_t *t_cp = (const uint32_t *) (cp); \
(l) = ntohl (*t_cp); \
(cp) += NS_INT32SZ; \
} while (0)
libresolv_hidden_proto (ns_samename)
libresolv_hidden_proto (ns_makecanon)
libresolv_hidden_proto (ns_format_ttl)
+
+#endif