Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
6843-ei-Fix-freebsd-version-check.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 6843-ei-Fix-freebsd-version-check.patch of Package erlang
From 8d8ee8181e35335196f79cccb1386cdfd0b5abac Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Fri, 21 Jan 2022 13:48:37 +0100 Subject: [PATCH] ei: Fix freebsd version check --- lib/erl_interface/src/connect/ei_resolve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/erl_interface/src/connect/ei_resolve.c b/lib/erl_interface/src/connect/ei_resolve.c index e28902da82..bbf10e3c77 100644 --- a/lib/erl_interface/src/connect/ei_resolve.c +++ b/lib/erl_interface/src/connect/ei_resolve.c @@ -395,7 +395,7 @@ struct hostent *ei_gethostbyaddr_r(const char *addr, return gethostbyaddr(addr, length, type); #elif !defined(HAVE_GETHOSTBYNAME_R) return my_gethostbyaddr_r(addr,length,type,hostp,buffer,buflen,h_errnop); -#elif (defined(__GLIBC__) || defined(__linux__) || (__FreeBSD_version >= 602000) || defined(__DragonFly__)) +#elif (defined(__GLIBC__) || defined(__linux__) || (defined(__FreeBSD_version) && (__FreeBSD_version >= 602000)) || defined(__DragonFly__)) struct hostent *result; gethostbyaddr_r(addr, length, type, hostp, buffer, buflen, &result, @@ -418,7 +418,7 @@ struct hostent *ei_gethostbyname_r(const char *name, return gethostbyname(name); #elif !defined(HAVE_GETHOSTBYNAME_R) return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop); -#elif (defined(__GLIBC__) || defined(__linux__) || (__FreeBSD_version >= 602000) || defined(__DragonFly__) || defined(__ANDROID__)) +#elif (defined(__GLIBC__) || defined(__linux__) || (defined(__FreeBSD_version) && (__FreeBSD_version >= 602000)) || defined(__DragonFly__) || defined(__ANDROID__)) struct hostent *result; int err; -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor