Fixes compilation in Windows.

This commit is contained in:
Andrea Mazzoleni 2013-02-27 20:50:40 +01:00
parent 28efb85011
commit 14039c1a63
3 changed files with 7 additions and 2 deletions

View file

@ -19,8 +19,6 @@
#ifdef __MINGW32__ /* Only for MingW */
#include "mingw.h"
/* Adds missing Windows declaration */
typedef struct _FILE_ATTRIBUTE_TAG_INFO {
DWORD FileAttributes;

View file

@ -64,6 +64,9 @@
#define symlink windows_symlink
#define link windows_link
/* We have nano second support */
#define STAT_NSEC(st) (st)->st_mtimensec
/**
* Generic stat information.
*/

4
unix.c
View file

@ -17,6 +17,8 @@
#include "portable.h"
#ifndef __MINGW32__ /* Only for Unix */
int open_noatime(const char* file, int flags)
{
#ifdef O_NOATIME
@ -65,3 +67,5 @@ void os_done(void)
{
}
#endif