xsi_strerror: Use stddef.h so that we can use size_t

This commit is contained in:
Tatsuhiro Tsujikawa 2016-10-19 23:50:28 +09:00
parent 08a9a2eca9
commit f09c5c4bf9
1 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,8 @@
#include <config.h> #include <config.h>
#endif /* HAVE_CONFIG_H */ #endif /* HAVE_CONFIG_H */
#include <stddef.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
@ -44,7 +46,7 @@ extern "C" {
* sufficient to include error message, and |buflen| > 0, empty string * sufficient to include error message, and |buflen| > 0, empty string
* is written to |buf|. This function returns |buf|. * 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 #ifdef __cplusplus
} }