Skip to content

Commit

Permalink
Relax condition for resolver constant definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 14, 2010
1 parent b1a6644 commit 63ee841
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2010-01-14 Ulrich Drepper <drepper@redhat.com>

* resolv/netdb.h: Relax condition to elide obsolete resolver constants.

* posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.

[BZ #11120]
Expand Down
12 changes: 6 additions & 6 deletions resolv/netdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@

__BEGIN_DECLS

#if defined __USE_GNU || !defined __USE_XOPEN2K8
#if defined __USE_MISC || 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 ())
# define h_errno (*__h_errno_location ())

/* Function to get address of global `h_errno' variable. */
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));


/* Possible values left in `h_errno'. */
#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found. */
#define TRY_AGAIN 2 /* Non-Authoritative Host not found,
# define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found. */
# define TRY_AGAIN 2 /* Non-Authoritative Host not found,
or SERVERFAIL. */
#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED,
# define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED,
NOTIMP. */
#define NO_DATA 4 /* Valid name, no data record of requested
# define NO_DATA 4 /* Valid name, no data record of requested
type. */
#endif
#if defined __USE_MISC || defined __USE_GNU
Expand Down

0 comments on commit 63ee841

Please sign in to comment.