File itrace.buildchecksfix.patch of Package itrace

---
 src/perfutil/perfctr.c  |    2 +-
 src/rtdriver/rtdriver.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

--- a/src/perfutil/perfctr.c
+++ b/src/perfutil/perfctr.c
@@ -1995,7 +1995,7 @@ int __cdecl SendPerfCounterEventDefiniti
       return (PU_ERROR_DRIVER_NOT_LOADED);   
    
    if (definitions == NULL || def_size == 0)
-      return;
+   return (PU_ERROR_NOT_SUPPORTED);
 
    pr->val1 = def_size;
    pr->addr = PtrToUint64(definitions);
--- a/src/rtdriver/rtdriver.c
+++ b/src/rtdriver/rtdriver.c
@@ -175,6 +175,8 @@
    #include <netinet/in.h>
    #include <netdb.h>
    #include <arpa/inet.h>
+   #include <unistd.h>
+   #include <ctype.h>
 
    #define closesocket  close
    #define stricmp   strcasecmp