diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/network/h_errno.c | 8 | ||||
| -rw-r--r-- | src/network/res_query.c | 1 | 
2 files changed, 9 insertions, 0 deletions
diff --git a/src/network/h_errno.c b/src/network/h_errno.c index 73ead046..5560234c 100644 --- a/src/network/h_errno.c +++ b/src/network/h_errno.c @@ -1 +1,9 @@ +#include <netdb.h> + +#undef h_errno;  int h_errno; + +int *__h_errno_location(void) +{ +	return &h_errno; +} diff --git a/src/network/res_query.c b/src/network/res_query.c index 42009992..c3ad1090 100644 --- a/src/network/res_query.c +++ b/src/network/res_query.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE  #include <netdb.h>  #include "__dns.h"  #include "libc.h"  | 
