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

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



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 */

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