diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-01-12 09:28:02 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:22:32 +0100 |
commit | 947a6c107a40f43b64adb3736a495e47caad7414 (patch) | |
tree | 79bac6e0023cf3c7b4d34e6720d5d8983e1e8481 /src/basic | |
parent | 18a4f5b6f2977120281715a4b9dfee46a303436b (diff) |
Fix lookup_errno by adding a gperf length parameter detection.
build-sys: add check for gperf lookup function signature (#5055)
gperf-3.1 generates lookup functions that take a size_t length
parameter instead of unsigned int. Test for this at configure time.
Fixes: https://github.com/systemd/systemd/issues/5039
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/errno-list.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/basic/errno-list.c b/src/basic/errno-list.c index fff37eb3e..f7f33bb44 100644 --- a/src/basic/errno-list.c +++ b/src/basic/errno-list.c @@ -21,11 +21,13 @@ #include <string.h> +#include "config.h" #include "util.h" #include "errno-list.h" static const struct errno_name* lookup_errno(register const char *str, - register unsigned int len); + register GPERF_LEN_TYPE len); + #include "errno-to-name.h" #include "errno-from-name.h" |