summaryrefslogtreecommitdiff
path: root/openbsd-compat/strndup.c
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:54:12 +1000
commit7c15301841e2e9d37cae732400de63ae9c0961d6 (patch)
treec759961768db4f897cd80a373490e4613e400b25 /openbsd-compat/strndup.c
parentcec338967a666b7c8ad8b88175f2faeddf268116 (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.
Diffstat (limited to 'openbsd-compat/strndup.c')
-rw-r--r--openbsd-compat/strndup.c2
1 files changed, 1 insertions, 1 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>