configure: use proper CONFIG_ prefix for asprintf/vasprintf
[fio.git] / oslib / strlcat.c
index 643d4966b4e5369b72c8df9b320b880fc7ca160a..6c4c67863256891f15b40b47b1969db1ab8ee37e 100644 (file)
@@ -1,4 +1,7 @@
+#ifndef CONFIG_STRLCAT
+
 #include <string.h>
+#include "strlcat.h"
 
 size_t strlcat(char *dst, const char *src, size_t size)
 {
@@ -21,3 +24,5 @@ size_t strlcat(char *dst, const char *src, size_t size)
 
        return dstlen + srclen;
 }
+
+#endif