Skip to content

Commit

Permalink
lib: c-ares: apply patch d8edb76b for build system
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Dec 18, 2023
1 parent be4552b commit 2f03657
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/c-ares-1.24.0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ CHECK_INCLUDE_FILES (sys/select.h HAVE_SYS_SELECT_H)
CHECK_INCLUDE_FILES (sys/stat.h HAVE_SYS_STAT_H)
CHECK_INCLUDE_FILES (sys/time.h HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILES (sys/uio.h HAVE_SYS_UIO_H)
CHECK_INCLUDE_FILES (sys/random.h HAVE_SYS_RANDOM_H)
CHECK_INCLUDE_FILES (ifaddrs.h HAVE_IFADDRS_H)
CHECK_INCLUDE_FILES (time.h HAVE_TIME_H)
CHECK_INCLUDE_FILES (dlfcn.h HAVE_DLFCN_H)
Expand Down Expand Up @@ -323,6 +324,7 @@ CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_SOCKIO_H sys/sockio.h)
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_TIME_H sys/time.h)
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_STAT_H sys/stat.h)
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_UIO_H sys/uio.h)
CARES_EXTRAINCLUDE_IFSET (HAVE_SYS_RANDOM_H sys/random.h)
CARES_EXTRAINCLUDE_IFSET (HAVE_TIME_H time.h)
CARES_EXTRAINCLUDE_IFSET (HAVE_FCNTL_H fcntl.h)
CARES_EXTRAINCLUDE_IFSET (HAVE_UNISTD_H unistd.h)
Expand Down
1 change: 1 addition & 0 deletions lib/c-ares-1.24.0/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ AC_CHECK_HEADERS(
sys/ioctl.h \
sys/param.h \
sys/uio.h \
sys/random.h \
assert.h \
iphlpapi.h \
netioapi.h \
Expand Down
3 changes: 3 additions & 0 deletions lib/c-ares-1.24.0/src/lib/ares_config.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
/* Define to 1 if you have the <sys/param.h> header file. */
#cmakedefine HAVE_SYS_PARAM_H

/* Define to 1 if you have the <sys/random.h> header file. */
#cmakedefine HAVE_SYS_RANDOM_H

/* Define to 1 if you have the <sys/select.h> header file. */
#cmakedefine HAVE_SYS_SELECT_H

Expand Down
3 changes: 3 additions & 0 deletions lib/c-ares-1.24.0/src/lib/ares_rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#include "ares.h"
#include "ares_private.h"
#include <stdlib.h>
#ifdef HAVE_SYS_RANDOM_H
# include <sys/random.h>
#endif


typedef enum {
Expand Down

0 comments on commit 2f03657

Please sign in to comment.