aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h1
-rw-r--r--include/resolv.h1
-rw-r--r--include/sys/sysctl.h2
3 files changed, 3 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h
index c77c4036f4..d58fe5beda 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -19,6 +19,7 @@ __set_h_errno (int __err)
# else
# undef h_errno
# define __set_h_errno(x) (h_errno = (x))
+extern int h_errno;
# endif /* _LIBC_REENTRANT */
libc_hidden_proto (hstrerror)
diff --git a/include/resolv.h b/include/resolv.h
index 8ad713e96c..b9ed35e977 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -20,6 +20,7 @@ extern __thread struct __res_state _res;
# endif
# else
# ifndef __BIND_NOSTATIC
+# undef _res
extern struct __res_state _res;
# endif
# endif
diff --git a/include/sys/sysctl.h b/include/sys/sysctl.h
index db8e08da4a..2a11226dd7 100644
--- a/include/sys/sysctl.h
+++ b/include/sys/sysctl.h
@@ -1,7 +1,7 @@
#ifndef _SYS_SYSCTL_H
#include_next <sys/sysctl.h>
-/* Read or write system parameters (Linux specific). */
+/* Read or write system parameters (Linux, FreeBSD specific). */
extern int __sysctl (int *__name, int __nlen, void *__oldval,
size_t *__oldlenp, void *__newval, size_t __newlen);