mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
Workaround for broken GCC in Debian Etch
* src/storage_conf.c src/internal.h: move previous check in internal.h and add a workaround for a GCC bug in Debian Etch on limit definitions
This commit is contained in:
parent
64bf389bca
commit
3f11d7820a
@ -73,8 +73,14 @@
|
||||
#else
|
||||
#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__ */
|
||||
|
||||
/**
|
||||
* ATTRIBUTE_UNUSED:
|
||||
*
|
||||
|
@ -45,11 +45,6 @@
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_STORAGE
|
||||
|
||||
/* 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 virStorageError(conn, code, fmt...) \
|
||||
virReportErrorHelper(conn, VIR_FROM_STORAGE, code, __FILE__,\
|
||||
__FUNCTION__, __LINE__, fmt)
|
||||
|
Loading…
Reference in New Issue
Block a user