Skip to content

Commit

Permalink
dns,net: fix build of asyn_getaddrinfo on gcc 4.3.5 (#482) (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 authored Aug 23, 2022
1 parent 75001ed commit 910db95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dns/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#define _DEFAULT_SOURCE 1

#ifndef WIN32
#include <arpa/inet.h>
#define __USE_POSIX 1 /**< Use POSIX flag */
#include <netdb.h>
#endif

Expand Down
1 change: 1 addition & 0 deletions src/net/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#if !defined(WIN32)
#define __USE_BSD 1 /**< Use BSD code */
#include <unistd.h>
#define __USE_POSIX 1 /**< Use POSIX flag */
#include <netdb.h>
#endif
#include <re_types.h>
Expand Down

0 comments on commit 910db95

Please sign in to comment.