X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=win32%2Fwin32_compat.h;h=43f518e3b9cc7d2cb394390a16d675099ecb8384;hb=35bb34b41c0892cb3b4f01a5210327b8afd7003b;hp=9972e5da6e19a06903f5279ba38b975ab7aa5239;hpb=c33ce42cc5a1422787ad63068771fcd0c22a1804;p=deb_libnfs.git 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