提交 3f11d782 编写于 作者: M Maximilian Wilhelm 提交者: Daniel Veillard

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
上级 64bf389b
...@@ -73,8 +73,14 @@ ...@@ -73,8 +73,14 @@
#else #else
#define __GNUC_PREREQ(maj,min) 0 #define __GNUC_PREREQ(maj,min) 0
#endif #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
#endif /* __GNUC__ */
/** /**
* ATTRIBUTE_UNUSED: * ATTRIBUTE_UNUSED:
* *
......
...@@ -45,11 +45,6 @@ ...@@ -45,11 +45,6 @@
#define VIR_FROM_THIS VIR_FROM_STORAGE #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...) \ #define virStorageError(conn, code, fmt...) \
virReportErrorHelper(conn, VIR_FROM_STORAGE, code, __FILE__,\ virReportErrorHelper(conn, VIR_FROM_STORAGE, code, __FILE__,\
__FUNCTION__, __LINE__, fmt) __FUNCTION__, __LINE__, fmt)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册