uwimap: fix build using gcc14 and recompile for library/security/openssl-3
[oi-userland.git] / components / desktop / stardict / patches / 04-sockets.cpp.patch
blob1e7d5e7c531c869ead848048eb5994167cf01fab
1 --- stardict-3.0.3/dict/src/lib/sockets.cpp.~1~ 2011-07-03 10:58:40.000000000 +0400
2 +++ stardict-3.0.3/dict/src/lib/sockets.cpp 2014-12-02 17:48:18.842815185 +0300
3 @@ -45,6 +45,7 @@
4 # include <sys/types.h>
5 # include <sys/socket.h>
6 # include <netinet/in.h>
7 +# include <arpa/inet.h>
8 # include <netdb.h>
9 # include <cerrno>
10 # include <fcntl.h>
11 @@ -177,7 +178,7 @@
13 DnsQueryData *query_data = (DnsQueryData *)data;
14 struct hostent *phost;
15 -#ifndef _WIN32
16 +#if !defined(_WIN32) && !defined(__sun__)
17 #ifdef HAVE_GETHOSTBYNAME_R
18 struct hostent hostinfo;
19 char buf[1024];