Browse Source

build on linux

Julius Pfrommer 9 years ago
parent
commit
cf423b3ed7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/src/opcuaServer.c
  2. 1 1
      src/ua_types.c

+ 1 - 1
examples/src/opcuaServer.c

@@ -28,7 +28,7 @@ UA_Int32 serverCallback(void * arg) {
 	Namespace* ns0 = (Namespace*)UA_indexedList_find(appMockup.namespaces, 0)->payload;
 	UA_Int32 retval;
 	const UA_Node * node;
-	UA_ExpandedNodeId serverStatusNodeId = NS0EXPANDEDNODEID(2256);
+	UA_ExpandedNodeId serverStatusNodeId; NS0EXPANDEDNODEID(serverStatusNodeId, 2256);
 	retval = Namespace_get(ns0, &serverStatusNodeId.nodeId, &node);
 	if(retval == UA_SUCCESS){
 		((UA_ServerStatusDataType*)(((UA_VariableNode*)node)->value.data))->currentTime = UA_DateTime_now();

+ 1 - 1
src/ua_types.c

@@ -3,9 +3,9 @@
 #include <string.h>
 #include <stdarg.h> // va_start, va_end
 
+#include <time.h>
 #ifdef WIN32
 #include <windows.h>
-#include <time.h>
 #else
 #include <sys/time.h>
 #endif