summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-12 10:44:26 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-12 10:44:26 +0800
commitf0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49 (patch)
treebc0d2895a904129687dc15f75ac7b117831d6a20 /devel
parentf5b3a869dd1421f090d86d01481967935d1ef2e6 (diff)
downloadmarcuscom-ports-f0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49.tar
marcuscom-ports-f0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49.tar.gz
marcuscom-ports-f0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49.tar.bz2
marcuscom-ports-f0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49.tar.lz
marcuscom-ports-f0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49.tar.xz
marcuscom-ports-f0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49.tar.zst
marcuscom-ports-f0a1fb8dec0a5cf3fc43f1ef2427c89df6122b49.zip
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
Diffstat (limited to 'devel')
-rw-r--r--devel/libgtop2/files/patch-sysdeps_common_fsusage.c29
1 files changed, 29 insertions, 0 deletions
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 <sys/types.h>
+@@ -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.