| From c1e9f2f3d086e0df3c10a2468fd7b37fd0c5038c Mon Sep 17 00:00:00 2001 |
| From: Khem Raj <raj.khem@gmail.com> |
| Date: Wed, 7 Sep 2022 00:02:08 -0700 |
| Subject: [PATCH] configure: Fix checks for system headers |
| Define _DEFAULT_SOURCE in system.c so unistd.h can expose readlink API |
| Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 2 files changed, 3 insertions(+), 1 deletion(-) |
| diff --git a/configure.ac b/configure.ac |
| index cdf1eba..6fc81e6 100644 |
| dnl Checks for header files. |
| -AC_CHECK_HEADERS( [unistd.h, stdint.h, inttypes.h]) |
| +AC_CHECK_HEADERS( [unistd.h stdint.h inttypes.h]) |
| dnl Checks for typedefs, and compiler characteristics. |
| diff --git a/src/system.c b/src/system.c |
| index 4e008fa..98631a6 100644 |
| * 1. specify the constants in "configed.H" or "noconfig.H", |
| * 2. append the system-dependent routines in this file. |