- fix LONG_PTR for x86 Signed-off-by: SSE4 <tomskside@gmail.com>
diff --git a/sys/wait.h b/sys/wait.h
index b3aed8f..f216143 100644
--- a/sys/wait.h
+++ b/sys/wait.h
@@ -48,8 +48,19 @@ extern "C" {
typedef unsigned long DWORD;
typedef DWORD * LPDWORD;
+
+#ifdef _WIN64
+
typedef long long LONG_PTR;
typedef unsigned long long ULONG_PTR;
+
+#else /* _WIN64 */
+
+typedef long LONG_PTR;
+typedef unsigned long ULONG_PTR;
+
+#endif
+
typedef long LONG;
typedef wchar_t WCHAR;
typedef int BOOL;