diff --git a/c/lib/mlr_arch.c b/c/lib/mlr_arch.c index ee50a490d..63993472f 100644 --- a/c/lib/mlr_arch.c +++ b/c/lib/mlr_arch.c @@ -6,6 +6,9 @@ #include "mlrutil.h" #include "netbsd_strptime.h" +// For some Linux distros, in spite of including time.h: +char *strptime(const char *s, const char *format, struct tm *ptm); + // ---------------------------------------------------------------- int mlr_arch_setenv(const char *name, const char *value) { #ifdef MLR_ON_MSYS2 @@ -29,8 +32,8 @@ int mlr_arch_unsetenv(const char *name) { // ---------------------------------------------------------------- char *mlr_arch_strptime(const char *s, const char *format, struct tm *ptm) { #ifdef MLR_ON_MSYS2 - return strptime(*s, format, ptm); -#else return netbsd_strptime(s, format, ptm); +#else + return strptime(s, format, ptm); #endif }