From f0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 12 Mar 2004 02:44:26 +0000 Subject: Add a patch forgotten in the 2.5.2 update. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2036 df743ca5-7f9a-e211-a948-0013205c9059 --- .../libgtop2/files/patch-sysdeps_common_fsusage.c | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 devel/libgtop2/files/patch-sysdeps_common_fsusage.c (limited to 'devel') diff --git a/devel/libgtop2/files/patch-sysdeps_common_fsusage.c b/devel/libgtop2/files/patch-sysdeps_common_fsusage.c new file mode 100644 index 000000000..b64ec4986 --- /dev/null +++ b/devel/libgtop2/files/patch-sysdeps_common_fsusage.c @@ -0,0 +1,29 @@ +--- sysdeps/common/fsusage.c.orig Thu Mar 11 15:53:36 2004 ++++ sysdeps/common/fsusage.c Thu Mar 11 15:56:37 2004 +@@ -28,7 +28,7 @@ + # endif + #endif + #ifndef UINTMAX_MAX +-# define UINTMAX_MAX ((uintmax_t) -1) ++# define UINTMAX_MAX ((uint64_t) -1) + #endif + + #include +@@ -84,7 +84,7 @@ + a uintmax_t value that is all 1 bits if X is all 1 bits, even if X + is unsigned and narrower than uintmax_t. */ + #define PROPAGATE_ALL_ONES(x) \ +- ((sizeof (x) < sizeof (uintmax_t) \ ++ ((sizeof (x) < sizeof (uint64_t) \ + && (~ (x) == (sizeof (x) < sizeof (int) \ + ? - (1 << (sizeof (x) * CHAR_BIT)) \ + : 0))) \ +@@ -92,7 +92,7 @@ + + /* Extract the top bit of X as an uintmax_t value. */ + #define EXTRACT_TOP_BIT(x) ((x) \ +- & ((uintmax_t) 1 << (sizeof (x) * CHAR_BIT - 1))) ++ & ((uint64_t) 1 << (sizeof (x) * CHAR_BIT - 1))) + + /* If a value is negative, many space usage primitives store it into an + integer variable by assignment, even if the variable's type is unsigned. -- cgit v1.2.3