Add strndup() function, if we don't have it
[fio.git] / Makefile
index c3e551dffd1a2ef6f37c7bda521928180bb0e10e..a412a43b0f70b0437e3eb89f781a62562be203ac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -107,6 +107,9 @@ endif
 ifndef CONFIG_STRLCAT
   SOURCE += oslib/strlcat.c
 endif
+ifndef CONFIG_HAVE_STRNDUP
+  SOURCE += oslib/strndup.c
+endif
 ifndef CONFIG_GETOPT_LONG_ONLY
   SOURCE += oslib/getopt_long.c
 endif