[libvirt] [PATCH] Workaround for broken GCC in Debian Etch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi again!

I missed one patch for working around a GCC bug in Debian Etch
regarding limit definitions.

Sorry for the unstripped git-format-patch outputs, I just realised
this after pressing send :(

(This seems to be not my day :))

Ciao
Max
-- 
Gib Dein Bestes. Dann übertriff Dich selbst!
* src/storage_backend_fs.c: Work around broken limits.h in Debian Etch.

---
 src/storage_backend_fs.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/storage_backend_fs.c b/src/storage_backend_fs.c
index ca6d329..599cf1a 100644
--- a/src/storage_backend_fs.c
+++ b/src/storage_backend_fs.c
@@ -44,6 +44,12 @@
 #include "memory.h"
 #include "xml.h"
 
+/* Work around broken limits.h on debian etch */
+#if defined __GNUC__ && defined _GCC_LIMITS_H_ && ! defined ULLONG_MAX
+# define ULLONG_MAX   ULONG_LONG_MAX
+#endif
+
+
 enum lv_endian {
     LV_LITTLE_ENDIAN = 1, /* 1234 */
     LV_BIG_ENDIAN         /* 4321 */
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]