mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nss_dns: Remove custom offsetof macro definition
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2016-04-27 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* resolv/nss_dns/dns-network.c (offsetof): Remove macro
|
||||||
|
definition. Include <stddef.h> instead.
|
||||||
|
|
||||||
2016-04-27 Florian Weimer <fweimer@redhat.com>
|
2016-04-27 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
[BZ #19831]
|
[BZ #19831]
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "nsswitch.h"
|
#include "nsswitch.h"
|
||||||
#include <arpa/inet.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
|
static enum nss_status
|
||||||
getanswer_r (const querybuf *answer, int anslen, struct netent *result,
|
getanswer_r (const querybuf *answer, int anslen, struct netent *result,
|
||||||
char *buffer, size_t buflen, int *errnop, int *h_errnop,
|
char *buffer, size_t buflen, int *errnop, int *h_errnop,
|
||||||
|
Reference in New Issue
Block a user