X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=resolv%2Fnetdb.h;h=9282be334a2535c3cbdf605f88648ea3cdc30f76;hp=fdfc056750acbfb83e8c20df4b3f22ab67248d5c;hb=1e070c0fcf535a3c6c938a3990df847dc076bf84;hpb=1a1e0ae60ebcaacb2f51ca9af1fc4b11c21a398f diff --git a/resolv/netdb.h b/resolv/netdb.h index fdfc056750..9282be334a 100644 --- a/resolv/netdb.h +++ b/resolv/netdb.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it @@ -49,13 +49,11 @@ extern int h_errno; extern int *__h_errno_location __P ((void)) __attribute__ ((__const__)); #ifdef _LIBC -/* Retain some binary compatibility with old libraries by having both the - global variable and the per-thread variable set on error. */ # ifdef _LIBC_REENTRANT static inline int __set_h_errno (int __err) { - return *__h_errno_location () = h_errno = __err; + return *__h_errno_location () = __err; } # else # define __set_h_errno(x) (h_errno = (x))