mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fixes compilation in Windows.
This commit is contained in:
parent
28efb85011
commit
14039c1a63
3 changed files with 7 additions and 2 deletions
2
mingw.c
2
mingw.c
|
|
@ -19,8 +19,6 @@
|
|||
|
||||
#ifdef __MINGW32__ /* Only for MingW */
|
||||
|
||||
#include "mingw.h"
|
||||
|
||||
/* Adds missing Windows declaration */
|
||||
typedef struct _FILE_ATTRIBUTE_TAG_INFO {
|
||||
DWORD FileAttributes;
|
||||
|
|
|
|||
3
mingw.h
3
mingw.h
|
|
@ -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
4
unix.c
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue