aboutsummaryrefslogtreecommitdiff
path: root/devel/linuxthreads
diff options
context:
space:
mode:
Diffstat (limited to 'devel/linuxthreads')
-rw-r--r--devel/linuxthreads/files/gethostby_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/devel/linuxthreads/files/gethostby_r.c b/devel/linuxthreads/files/gethostby_r.c
index 4d6d6b487f9a..44aa5227225b 100644
--- a/devel/linuxthreads/files/gethostby_r.c
+++ b/devel/linuxthreads/files/gethostby_r.c
@@ -1,5 +1,6 @@
#include "pthread.h"
#include <netdb.h>
+#include <osreldate.h>
#include <string.h>
#ifdef __sparc__
@@ -105,7 +106,7 @@ convert (struct hostent *host, struct hostent *result,
return 0;
}
-#if __FreeBSD__ < 5 || __FreeBSD__version >= 501101
+#if __FreeBSD__ < 5 || __FreeBSD_version >= 501101
struct hostent *
gethostbyaddr_r (const char *addr, int length, int type,
struct hostent *result, char *buffer, int buflen,