Browse Source

Added F_OK to server.c, as it does not include any definitions in the hidden ua_util.h when amalgamation is enabled.

ichrispa 9 years ago
parent
commit
67840c9f38
1 changed files with 14 additions and 0 deletions
  1. 14 0
      examples/server.c

+ 14 - 0
examples/server.c

@@ -27,6 +27,20 @@
 # include "networklayer_tcp.h"
 #else
 # include "open62541.h"
+    #ifdef _MSC_VER
+        #ifndef R_OK
+            #define R_OK    4               /* Test for read permission.  */
+        #endif
+        #ifndef R_OK
+            #define W_OK    2               /* Test for write permission.  */
+        #endif
+        #ifndef X_OK
+            #define X_OK    1               /* Test for execute permission.  */
+        #endif
+        #ifndef F_OK
+            #define F_OK    0               /* Test for existence.  */
+        #endif
+    #endif
 #endif
 
 /****************************/