From 910db9573cb975619b2cd27b95f7859d7e1d5f2d Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Tue, 23 Aug 2022 11:48:59 +0200 Subject: [PATCH] dns,net: fix build of asyn_getaddrinfo on gcc 4.3.5 (#482) (#483) --- src/dns/client.c | 2 ++ src/net/net.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/dns/client.c b/src/dns/client.c index 4fa39a510..a4e2a13b6 100644 --- a/src/dns/client.c +++ b/src/dns/client.c @@ -8,6 +8,8 @@ #define _DEFAULT_SOURCE 1 #ifndef WIN32 +#include +#define __USE_POSIX 1 /**< Use POSIX flag */ #include #endif diff --git a/src/net/net.c b/src/net/net.c index 6248eda76..367b7b489 100644 --- a/src/net/net.c +++ b/src/net/net.c @@ -10,6 +10,7 @@ #if !defined(WIN32) #define __USE_BSD 1 /**< Use BSD code */ #include +#define __USE_POSIX 1 /**< Use POSIX flag */ #include #endif #include