summaryrefslogtreecommitdiff
path: root/devel/libgtop2/files/patch-sysdeps_common_fsusage.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-04-05 03:11:39 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-04-05 03:11:39 +0000
commitc4851e78e4f63338fe9a4883e5b7a0370dce27f7 (patch)
tree3910aa2e83f782cec94f15b4547dadb741cd29ce /devel/libgtop2/files/patch-sysdeps_common_fsusage.c
parentAdd gnomekeyring, an API and daemon for managing lists of credentials. This (diff)
Presenting GNOME 2.6.0. The FreeBSD GNOME Team feels this our best release
ever. It fixes many bugs, and adds some features missing in previous FreeBSD ports. To help users upgrade from GNOME 2.4, we have constructed an upgrade FAQ at: http://www.freebsd.org/gnome/docs/faq26.html Please read it carefully. GNOME 2.6 packages are also available for all supported i386 versions of FreeBSD at: http://www.marcuscom.com/tinderbox/ The FreeBSD GNOME Team would like the thank the following users for their wonderful testing and patching efforts. We would especially like to thank Franz Klammer <klammer@webonaut.com> for his wonderful new splash screen. Without these people, our team, and our team alumni, GNOME on FreeBSD would not be possible. Jeremy Messenger <mezz7@cox.net> Khairil Yusof <kaeru@pd.jaring.my> Koop Mast <kwm@rainbow-runner.nl> Simon Barner <barner@in.tum.de> Tom McLaughlin <tmclaugh@sdf.lonestar.org> Scott Dodson <sdodson@sdodson.com> Vladimir Grebenschikov <vova@sw.ru>
Diffstat (limited to 'devel/libgtop2/files/patch-sysdeps_common_fsusage.c')
-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 000000000000..b64ec49863bf
--- /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.