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:
Maximilian Wilhelm 2009-08-05 11:19:34 +02:00 committed by Daniel Veillard
parent 64bf389bca
commit 3f11d7820a
2 changed files with 6 additions and 5 deletions

View File

@ -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:
*

View File

@ -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)