  	endif()
  endif()
  
-@@ -115,8 +113,8 @@ else()
+@@ -150,8 +147,8 @@ else()
  endif()
  
  add_library(open62541-objects OBJECT ${lib_sources}) # static version that exports all symbols

     if(NOT EXISTS "${PROJECT_BINARY_DIR}/src_generated/queue.h")
         file(DOWNLOAD "http://openbsd.cs.toronto.edu/cgi-bin/cvsweb/~checkout~/src/sys/sys/queue.h" "${PROJECT_BINARY_DIR}/src_generated/queue.h" STATUS result)
         list(GET result 0 download_ok)
@@ -146,7 +144,7 @@ if(WIN32)
             message(FATAL_ERROR "queue.h could not be downloaded")
         endif()
     endif()

From 97515341454f26fcd14e50d5980f5f0361307814 Mon Sep 17 00:00:00 2001
From: FlorianPalm <f.palm@plt.rwth-aachen.de>
Date: Mon, 12 Jan 2015 18:45:01 +0100
Subject: [PATCH] fixes to the patch

---
 CMakeLists.txt | 19 ++++++++-----------
 src/ua_util.h  |  2 +-
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c785182..9e66da0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,19 +47,16 @@ set(lib_sources src/ua_types.c
 
 # compiler flags
 if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
