summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-04-29 17:54:12 +1000
committerDarren Tucker <dtucker@dtucker.net>2018-04-29 17:59:04 +1000
commit45a573a090eaf31238e98cab50c142a8d6751b90 (patch)
tree6cee03815d6f3a82db83950c219dca9b69e8c160
parentf5baa36ba79a6e8c534fb4e0a00f2614ccc42ea6 (diff)
Use includes.h instead of config.h.
This ensures it picks up the definition of DEF_WEAK, the lack of which can cause compile errors in some cases (eg modern AIX). From michael at felt.demon.nl.
-rw-r--r--openbsd-compat/strndup.c2
-rw-r--r--openbsd-compat/strnlen.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/strndup.c b/openbsd-compat/strndup.c
index ebb4eccf..30ac6f04 100644
--- a/openbsd-compat/strndup.c
+++ b/openbsd-compat/strndup.c
@@ -16,7 +16,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "config.h"
+#include "includes.h"
#if !defined(HAVE_STRNDUP) || defined(BROKEN_STRNDUP)
#include <sys/types.h>
diff --git a/openbsd-compat/strnlen.c b/openbsd-compat/strnlen.c
index 8cc6b96b..7ad3573a 100644
--- a/openbsd-compat/strnlen.c
+++ b/openbsd-compat/strnlen.c
@@ -18,7 +18,7 @@
/* OPENBSD ORIGINAL: lib/libc/string/strnlen.c */
-#include "config.h"
+#include "includes.h"
#if !defined(HAVE_STRNLEN) || defined(BROKEN_STRNLEN)
#include <sys/types.h>