diff options
Diffstat (limited to 'src/libstrongswan/utils.h')
-rw-r--r-- | src/libstrongswan/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/utils.h b/src/libstrongswan/utils.h index 954925dab..c671a2e08 100644 --- a/src/libstrongswan/utils.h +++ b/src/libstrongswan/utils.h @@ -422,6 +422,11 @@ bool mkdir_p(const char *path, mode_t mode); */ const char *safe_strerror(int errnum); +/** + * Replace usages of strerror(3) with thread-safe variant. + */ +#define strerror(errnum) safe_strerror(errnum) + #ifndef HAVE_CLOSEFROM /** * Close open file descriptors greater than or equal to lowfd. |