@@ -166,7 +166,7 @@ char** pika_platform_listdir(const char* path, int* count) {
filelist = newlist;
}
- filelist[idx] = strdup(fno.fname);
+ filelist[idx] = pika_platform_strdup(fno.fname);
if(!filelist[idx]) {
// Free any previously allocated memory
for(int i = 0; i < idx; i++)
@@ -294,6 +294,8 @@ PIKA_WEAK int pika_platform_mkdir(const char* pathname, int mode) {
return mkdir(dirpath);
#elif defined(__linux) || PIKA_LINUX_COMPATIBLE
return mkdir(pathname, mode);
+#else
+ WEAK_FUNCTION_NEED_OVERRIDE_ERROR_LOWLEVEL(_);
#endif