void-packages/srcpkgs/passwordsafe/patches/__time64_t.patch

25 lines
534 B
Diff

related issue: https://github.com/pwsafe/pwsafe/issues/563
Also:
https://github.com/pwsafe/pwsafe/commit/412458d281f98ea7649d2957f88ebad701b6cd18
--- src/os/unix/pws_time.h
+++ src/os/unix/pws_time.h
@@ -14,9 +14,11 @@
#include <time.h>
#endif
-typedef time_t __time32_t;
-#ifndef __time64_t
-typedef uint64_t __time64_t;
+#ifndef __TIME64_T_TYPE
+#define __TIME64_T_TYPE uint64_t
+#endif
+#ifndef time64_t
+typedef __TIME64_T_TYPE __time64_t;
#endif
extern int localtime64_r(const __time64_t *timep, struct tm *result);