Permalink
Browse files

fix patch

  • Loading branch information...
1 parent 0347427 commit de6d45c135e6941193dda3f628e5414aea3dfc66 @comex committed Oct 19, 2010
Showing with 17 additions and 20 deletions.
  1. +17 −20 xnu-32bit-stuff.diff
View
@@ -1,24 +1,21 @@
-diff --git a/bsd/i386/types.h b/bsd/i386/types.h
-index 3e31ca8..4a1282b 100644
---- a/bsd/i386/types.h
-+++ b/bsd/i386/types.h
-@@ -111,12 +111,12 @@ typedef unsigned long uintptr_t;
+--- a/bsd/i386/types.h 2010-10-18 22:41:59.000000000 -0400
++++ b/bsd/i386/types.h 2010-10-18 22:42:06.000000000 -0400
+@@ -111,12 +111,12 @@
#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
/* These types are used for reserving the largest possible size. */
--typedef u_int64_t user_addr_t;
--typedef u_int64_t user_size_t;
--typedef int64_t user_ssize_t;
--typedef int64_t user_long_t;
--typedef u_int64_t user_ulong_t;
--typedef int64_t user_time_t;
-+typedef u_int32_t user_addr_t;
-+typedef u_int32_t user_size_t;
-+typedef int32_t user_ssize_t;
-+typedef int32_t user_long_t;
-+typedef u_int32_t user_ulong_t;
-+typedef int32_t user_time_t;
- typedef int64_t user_off_t;
- #define USER_ADDR_NULL ((user_addr_t) 0)
+-typedef u_int64_t user_addr_t;
+-typedef u_int64_t user_size_t;
+-typedef int64_t user_ssize_t;
+-typedef int64_t user_long_t;
+-typedef u_int64_t user_ulong_t;
+-typedef int64_t user_time_t;
++typedef u_int32_t user_addr_t;
++typedef u_int32_t user_size_t;
++typedef int32_t user_ssize_t;
++typedef int32_t user_long_t;
++typedef u_int32_t user_ulong_t;
++typedef int32_t user_time_t;
+ typedef int64_t user_off_t;
+ #define USER_ADDR_NULL ((user_addr_t) 0)
#define CAST_USER_ADDR_T(a_ptr) ((user_addr_t)((uintptr_t)(a_ptr)))
-

0 comments on commit de6d45c

Please sign in to comment.