summaryrefslogtreecommitdiff
path: root/lib/strlcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strlcpy.c')
-rw-r--r--lib/strlcpy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/strlcpy.c b/lib/strlcpy.c
index b0c33ca7f4..71ee9f1a54 100644
--- a/lib/strlcpy.c
+++ b/lib/strlcpy.c
@@ -20,9 +20,11 @@
/* adapted for Quagga from glibc patch submission originally from
* Florian Weimer <fweimer@redhat.com>, 2016-05-18 */
-#include <string.h>
-
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
+
+#include <string.h>
#ifndef HAVE_STRLCPY
#undef strlcpy