repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c33ce42
)
[win32] - fixe compilation broken since mknod addition
author
unknown
<memphis@machzwo.de>
Sun, 18 Mar 2012 17:16:38 +0000
(18:16 +0100)
committer
unknown
<memphis@machzwo.de>
Sun, 18 Mar 2012 17:17:24 +0000
(18:17 +0100)
win32/win32_compat.h
patch
|
blob
|
blame
|
history
diff --git
a/win32/win32_compat.h
b/win32/win32_compat.h
index 9972e5da6e19a06903f5279ba38b975ab7aa5239..43f518e3b9cc7d2cb394390a16d675099ecb8384 100644
(file)
--- 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