summaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-01-12 16:43:00 -0800
committerUlrich Drepper <drepper@redhat.com>2010-01-12 16:43:00 -0800
commit505cf2c00a0b43819f2b90069b42ace79034290d (patch)
tree4d69f2115680a163bf4c13dedf3ddc9091a7afce /resolv
parent86df697d806323a1f8d1c6b9429a62c20da881c5 (diff)
downloadglibc-505cf2c00a0b43819f2b90069b42ace79034290d.tar.gz
Fix up netdb.h for XPG7.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/netdb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h
index dc1f7cec61..0835939980 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -1,4 +1,4 @@
- /* Copyright (C) 1996-2002, 2003, 2004, 2009 Free Software Foundation, Inc.
+ /* Copyright (C) 1996-2004, 2009, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -53,6 +53,7 @@
__BEGIN_DECLS
+#if defined __USE_GNU || !defined __USE_XOPEN2K8
/* Error status for non-reentrant lookup functions.
We use a macro to access always the thread-specific `h_errno' variable. */
#define h_errno (*__h_errno_location ())
@@ -69,6 +70,7 @@ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
NOTIMP. */
#define NO_DATA 4 /* Valid name, no data record of requested
type. */
+#endif
#if defined __USE_MISC || defined __USE_GNU
# define NETDB_INTERNAL -1 /* See errno. */
# define NETDB_SUCCESS 0 /* No problem. */