X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fnetdb.h;h=82c78dc8991826a04b1276f6967f48fd43f4ff1e;hp=33b7a0abae85754d5203bea3eb315f1c10d0d12f;hb=419ae6d5c95629d3ebaff6f1880d52cb027ba924;hpb=e68c51ac46a9f273927aef8dcebc89912ab19ece diff --git a/include/netdb.h b/include/netdb.h index 33b7a0ab..82c78dc8 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -5,7 +5,7 @@ extern "C" { #endif -#ifdef _GNU_SOURCE +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define __NEED_size_t #endif @@ -118,7 +118,7 @@ struct protoent *getprotoent (void); struct protoent *getprotobyname (const char *); struct protoent *getprotobynumber (int); -#ifdef _GNU_SOURCE +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) const char *hstrerror(int); struct hostent *gethostbyname (const char *); int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *);