[libvirt] PATCH: Workaround limits.h bug on Debian

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

 



The Debian Etch  /usr/include/limits.h has an #endif in the wrong
place, making it fail to define ULLONG_MAX.  This works around
the brokenness

Daniel

diff -u -r1.32 storage_conf.c
--- storage_conf.c	4 Dec 2008 22:00:14 -0000	1.32
+++ storage_conf.c	5 Dec 2008 14:17:23 -0000
@@ -43,6 +43,11 @@
 #include "util.h"
 #include "memory.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
+
 #define virStorageLog(msg...) fprintf(stderr, msg)
 
 VIR_ENUM_IMPL(virStoragePool,


-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
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]