diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/socket.c | 2 | ||||
-rw-r--r-- | sal/osl/unx/system.h | 13 |
2 files changed, 3 insertions, 12 deletions
diff --git a/sal/osl/unx/socket.c b/sal/osl/unx/socket.c index d28413bba552..602135ee5655 100644 --- a/sal/osl/unx/socket.c +++ b/sal/osl/unx/socket.c @@ -728,7 +728,7 @@ static struct hostent* _osl_gethostbyname_r ( const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop) { -#if defined(LINUX) || defined(ANDROID) || (defined(FREEBSD) && (__FreeBSD_version >= 601103)) || defined(DRAGONFLY) +#if defined(LINUX) || defined(ANDROID) || (defined(FREEBSD) || defined(DRAGONFLY) struct hostent *__result; /* will be the same as result */ int __error; __error = gethostbyname_r (name, result, buffer, buflen, diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h index 33aef2437309..d952518515b7 100644 --- a/sal/osl/unx/system.h +++ b/sal/osl/unx/system.h @@ -131,13 +131,6 @@ # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD # include <machine/endian.h> -#if __FreeBSD_version < 500000 -# if BYTE_ORDER == LITTLE_ENDIAN -# define _LITTLE_ENDIAN -# elif BYTE_ORDER == BIG_ENDIAN -# define _BIG_ENDIAN -# endif -#endif # define NO_PTHREAD_RTL #endif @@ -395,7 +388,7 @@ typedef struct sockaddr_ipx { /* END HACK */ #ifdef NO_PTHREAD_RTL -#if !defined FREEBSD || (__FreeBSD_version < 500112) +#if !defined FREEBSD #if !defined NETBSD struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); #endif @@ -406,11 +399,9 @@ extern struct spwd *getspnam_r(const char *name, struct spwd *result, struct tm *localtime_r(const time_t *timep, struct tm *buffer); struct tm *gmtime_r(const time_t *timep, struct tm *buffer); #endif -#endif /* !defined FREEBSD || (__FreeBSD_version < 500112) */ -#if !defined(FREEBSD) || (__FreeBSD_version < 601103) struct hostent *gethostbyname_r(const char *name, struct hostent *result, char *buffer, size_t buflen, int *h_errnop); -#endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */ +#endif /* !defined(FREEBSD) */ #endif #endif // INCLUDED_SAL_OSL_UNX_SYSTEM_H |