The musl C library does not define _WCHAR_T. Use autoconf to check for wchar_t.
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- Changes v1 -> v2: - use autoconf to check for type wchar_t instead of using non-standardized GNU C extension macro __WCHAR_TYPE__ --- configure.ac | 2 ++ src/plugins/imb/imbapi.h | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b92c8a4..71cb4d4 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,8 @@ AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h sys/stat.h unistd.h paths.h]) AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h sys/socket.h]) AC_CHECK_HEADERS([sys/byteorder.h byteswap.h]) +AC_CHECK_TYPES([wchar_t]) + AC_C_CONST AC_C_INLINE AC_C_BIGENDIAN diff --git a/src/plugins/imb/imbapi.h b/src/plugins/imb/imbapi.h index 74975c6..b862445 100644 --- a/src/plugins/imb/imbapi.h +++ b/src/plugins/imb/imbapi.h @@ -35,6 +35,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *----------------------------------------------------------------------*/ #ifndef _WINDEFS_H #define _WINDEFS_H + +#if HAVE_CONFIG_H +# include <config.h> +#endif + #ifndef FALSE #define FALSE 0 #endif @@ -46,7 +51,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #endif #ifndef WIN32 /* WIN32 defines this in stdio.h */ -#ifndef _WCHAR_T +#if !defined(_WCHAR_T) && !defined(HAVE_WCHAR_T) #define _WCHAR_T typedef long wchar_t; #endif -- 2.8.0 ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532 _______________________________________________ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel