repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c33ce42
)
Merge pull request #22 from Memphiz/win32compilefix
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 26 Mar 2012 07:51:41 +0000
(
00:51
-0700)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 26 Mar 2012 07:51:41 +0000
(
00:51
-0700)
[win32] - fixed compilation broken since mknod addition
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