Files
MINGW-packages/mingw-w64-vrpn/0003-fix-includes.patch
2024-02-29 11:23:26 +05:30

30 lines
1.1 KiB
Diff

diff -bur vrpn-07.35-orig/vrpn_Vality.C vrpn-07.35/vrpn_Vality.C
--- vrpn-07.35-orig/vrpn_Vality.C 2024-02-28 22:30:45.245106200 -0700
+++ vrpn-07.35/vrpn_Vality.C 2024-02-28 22:30:47.112562100 -0700
@@ -3,6 +3,7 @@
#include <stdio.h> // for fprintf, stderr, NULL
#include <string.h> // for memset
#include <math.h> // for fabs
+#include <stdint.h> // for uint8_t
#include "vrpn_Vality.h"
#include "vrpn_MessageMacros.h" // for VRPN_MSG_INFO, VRPN_MSG_WARNING, VRPN_MSG_ERROR
diff -bur vrpn-07.35-orig/vrpn_Shared.C vrpn-07.35/vrpn_Shared.C
--- vrpn-07.35-orig/vrpn_Shared.C 2024-02-28 22:33:17.494354900 -0700
+++ vrpn-07.35/vrpn_Shared.C 2024-02-28 22:33:23.830402400 -0700
@@ -23,14 +23,6 @@
#define CHECK(a) \
if (a == -1) return -1
-#if defined(VRPN_USE_WINSOCK_SOCKETS)
-/* from HP-UX */
-struct timezone {
- int tz_minuteswest; /* minutes west of Greenwich */
- int tz_dsttime; /* type of dst correction */
-};
-#endif
-
// perform normalization of a timeval
// XXX this still needs to be checked for errors if the timeval
// or the rate is negative