diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-04-27 16:48:45 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-04-27 16:48:45 +0200 |
commit | c3bae689d30c46c56c695d5b4c61b88e3b178d92 (patch) | |
tree | b13b460befcc063c6201b90b4e6cd4f87bfe3a43 /resolv/nss_dns/dns-network.c | |
parent | 5e0c421cc07e2d06945b863ed3bb92395472705d (diff) | |
download | glibc-c3bae689d30c46c56c695d5b4c61b88e3b178d92.tar.gz glibc-c3bae689d30c46c56c695d5b4c61b88e3b178d92.tar.xz glibc-c3bae689d30c46c56c695d5b4c61b88e3b178d92.zip |
nss_dns: Remove custom offsetof macro definition
Diffstat (limited to 'resolv/nss_dns/dns-network.c')
-rw-r--r-- | resolv/nss_dns/dns-network.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c index 8f301a706b..99ec7555ab 100644 --- a/resolv/nss_dns/dns-network.c +++ b/resolv/nss_dns/dns-network.c @@ -62,6 +62,7 @@ #include <stdlib.h> #include <string.h> #include <stdint.h> +#include <stddef.h> #include "nsswitch.h" #include <arpa/inet.h> @@ -234,9 +235,6 @@ _nss_dns_getnetbyaddr_r (uint32_t net, int type, struct netent *result, } -#undef offsetof -#define offsetof(Type, Member) ((size_t) &((Type *) NULL)->Member) - static enum nss_status getanswer_r (const querybuf *answer, int anslen, struct netent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, |