openbsd-ports/java/tanukiwrapper/patches/patch-src_c_wrapper_h

19 lines
538 B
Plaintext

OpenBSD doesn't support timeb api
--- src/c/wrapper.h.orig Fri Jul 31 18:19:37 2020
+++ src/c/wrapper.h Fri Jul 31 18:21:15 2020
@@ -51,7 +51,12 @@
#define DWORD unsigned long
#endif
-#include <sys/timeb.h>
+struct timeb {
+ time_t time; /* seconds since the Epoch */
+ unsigned short millitm; /* + milliseconds since the Epoch */
+ short timezone; /* minutes west of UTC */
+ short dstflag; /* DST == non-zero */
+};
#include "property.h"
#include "wrapper_jvminfo.h"