oslib: make str* compat functions more uniform
[fio.git] / oslib / strsep.c
index b71e9f7bf25ab34e17084b737af5ecccd2a0f85a..2d42ca0f31e7eb1535d78e092507320b7160cf71 100644 (file)
@@ -1,4 +1,7 @@
-#include <stdio.h>
+#ifndef CONFIG_STRSEP
+
+#include <stddef.h>
+#include "strsep.h"
 
 char *strsep(char **stringp, const char *delim)
 {
@@ -27,3 +30,5 @@ char *strsep(char **stringp, const char *delim)
                } while (sc != 0);
        } while (1);
 }
+
+#endif