Fix compilation on windows, needs implementation of fs_getmtime on Windows

This commit is contained in:
def 2015-08-22 20:32:02 +02:00
parent 5119976c9f
commit c033ad6828
2 changed files with 5 additions and 0 deletions

View file

@ -1694,11 +1694,15 @@ int fs_is_dir(const char *path)
time_t fs_getmtime(const char *path)
{
#if defined(CONF_FAMILY_WINDOWS)
/* TODO */
#else
struct stat sb;
if (stat(path, &sb) == -1)
return 0;
return sb.st_mtime;
#endif
}
int fs_chdir(const char *path)

View file

@ -10,6 +10,7 @@
#include "detect.h"
#include "stddef.h"
#include <time.h>
#ifdef __cplusplus
extern "C" {