Merge topic 'libarchive-old-glibc'

ca77902 libarchive: Workaround mbsnrtowcs assertion failure on old glibc
This commit is contained in:
David Cole 2012-02-14 16:16:47 -05:00 committed by CMake Topic Stage
commit 0402697c06
1 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,11 @@
#define __FBSDID(a) struct _undefined_hack
#endif
/* Old glibc mbsnrtowcs fails assertions in our use case. */
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ <= 1
# undef HAVE_MBSNRTOWCS
#endif
/* Try to get standard C99-style integer type definitions. */
#if HAVE_INTTYPES_H
#include <inttypes.h>