]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remove hack for debian etch limits.h
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 15 May 2017 16:00:09 +0000 (17:00 +0100)
committerCole Robinson <crobinso@redhat.com>
Fri, 4 Aug 2017 20:10:28 +0000 (16:10 -0400)
The debian etch distro was end-of-life a long time ago so we no
longer need the ULLONG_MAX hack. In any case gnulib now provides
an equivalent fix by default, and so our definition now triggers
syntax-check rule failure

src/internal.h:#    define ULLONG_MAX   ULONG_LONG_MAX
maint.mk: define the above via some gnulib .h file
maint.mk:843: recipe for target 'sc_prohibit_always-defined_macros' failed

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 31020664e9614ad0e0057da159379d7e0cd5eb12)

src/internal.h

index 97a0f026937255471e8065e3b9aa0cf1fee4c159..cb38d9a46eb051a9d4efab241c9805f66f2d407a 100644 (file)
 #    define __GNUC_PREREQ(maj, min) 0
 #   endif
 
-/* Work around broken limits.h on debian etch */
-#   if defined _GCC_LIMITS_H_ && ! defined ULLONG_MAX
-#    define ULLONG_MAX   ULONG_LONG_MAX
-#   endif
-
 #  endif /* __GNUC__ */
 
 /**