Commit 41c307e8 authored by Tim Rühsen's avatar Tim Rühsen

* fuzz/libwget_http_client_fuzzer.c: Fix for OpenBSD

parent cee142cf
Pipeline #48925705 passed with stages
in 89 minutes and 37 seconds
...@@ -70,7 +70,11 @@ int getaddrinfo(const char *node, const char *service, const struct addrinfo *hi ...@@ -70,7 +70,11 @@ int getaddrinfo(const char *node, const char *service, const struct addrinfo *hi
return libc_getaddrinfo(node, service, hints, res); return libc_getaddrinfo(node, service, hints, res);
} }
#ifdef __OpenBSD__
int getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, size_t hostlen, char *serv, size_t servlen, int flags)
#else
int getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags) int getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
#endif
{ {
if (fuzzing) if (fuzzing)
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment