From: unknown Date: Sun, 18 Mar 2012 17:16:38 +0000 (+0100) Subject: [win32] - fixe compilation broken since mknod addition X-Git-Tag: upstream/1.9.6^2~254^2 X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=commitdiff_plain;h=35bb34b41c0892cb3b4f01a5210327b8afd7003b [win32] - fixe compilation broken since mknod addition --- diff --git a/win32/win32_compat.h b/win32/win32_compat.h index 9972e5d..43f518e 100644 --- a/win32/win32_compat.h +++ b/win32/win32_compat.h @@ -53,6 +53,26 @@ typedef int socklen_t; #define F_GETFL 3 #define F_SETFL 4 +#ifndef S_IFIFO +#define S_IFIFO 0x1000 /* FIFO */ +#endif + +#ifndef S_IFBLK +#define S_IFBLK 0x3000 /* Block: Is this ever set under w32? */ +#endif + +#ifndef S_IFSOCK +#define S_IFSOCK 0x0 /* not defined in mingw either */ +#endif + +#ifndef major +#define major(a) 0 +#endif + +#ifndef minor +#define minor(a) 0 +#endif + #define O_NONBLOCK 0x40000000 #define O_SYNC 0