diff options
author | Nick Clifton <nickc@redhat.com> | 2015-02-24 17:01:23 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-02-24 17:01:23 +0000 |
commit | 31593e1b96c792abba3c5268d6423975aefa56b2 (patch) | |
tree | ce993349f35e1985a69ced3df18b8a57eabfb814 /bfd/configure.ac | |
parent | 94d15024fe3dff908ab570aaa741b1c834c856d6 (diff) | |
download | gdb-31593e1b96c792abba3c5268d6423975aefa56b2.zip gdb-31593e1b96c792abba3c5268d6423975aefa56b2.tar.gz gdb-31593e1b96c792abba3c5268d6423975aefa56b2.tar.bz2 |
Fixes compiling peXXigen under MAC OS/X where the wcsncasecmp function is not available.
* configure.ac (AC_CHECK_HEADERS): Add wctype.h.
* configure: Regenerate.
* config.in: Regenerate.
* peXXigen.c: Include wctype.h if HAVE_WCTYPE_H is defined.
(u16_mbtowc): Use wint_t types if HAVE_WCTYPE_H is defined.
(rsrc_cmp): Use towlower instead of wcsncasecmp if HAVE_WCTYPE_H
is defined.
Diffstat (limited to 'bfd/configure.ac')
-rw-r--r-- | bfd/configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/configure.ac b/bfd/configure.ac index cd18689..a1b2035 100644 --- a/bfd/configure.ac +++ b/bfd/configure.ac @@ -207,7 +207,7 @@ AC_SUBST(BFD_HOSTPTR_T) BFD_CC_FOR_BUILD -AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h) +AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h) AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h) GCC_HEADER_STDINT(bfd_stdint.h) AC_HEADER_TIME |