|
@@ -115,6 +115,9 @@ struct protoent *getprotobynumber (int);
|
|
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
|
|
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
|
|
struct hostent *gethostbyname (const char *);
|
|
struct hostent *gethostbyname (const char *);
|
|
struct hostent *gethostbyaddr (const void *, socklen_t, int);
|
|
struct hostent *gethostbyaddr (const void *, socklen_t, int);
|
|
|
|
+#ifdef __GNUC__
|
|
|
|
+__attribute__((const))
|
|
|
|
+#endif
|
|
int *__h_errno_location(void);
|
|
int *__h_errno_location(void);
|
|
#define h_errno (*__h_errno_location())
|
|
#define h_errno (*__h_errno_location())
|
|
#define HOST_NOT_FOUND 1
|
|
#define HOST_NOT_FOUND 1
|