From f09c5c4bf9faa03122eeda119f8c0f45d41a5f32 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 19 Oct 2016 23:50:28 +0900 Subject: [PATCH] xsi_strerror: Use stddef.h so that we can use size_t --- src/xsi_strerror.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xsi_strerror.h b/src/xsi_strerror.h index 2476f343..9bb61659 100644 --- a/src/xsi_strerror.h +++ b/src/xsi_strerror.h @@ -29,6 +29,8 @@ #include #endif /* HAVE_CONFIG_H */ +#include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -44,7 +46,7 @@ extern "C" { * sufficient to include error message, and |buflen| > 0, empty string * is written to |buf|. This function returns |buf|. */ -char *xsi_strerror(int errnum, char *buf, unsigned long buflen); +char *xsi_strerror(int errnum, char *buf, size_t buflen); #ifdef __cplusplus }