From 587a56c4fb08ceac99752a6208d5585ba1f17957 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 28 Oct 2019 21:06:56 +0100 Subject: Add fallback implementation for getsubopt() Signed-off-by: David Oberhollenzer --- include/util/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/util') diff --git a/include/util/compat.h b/include/util/compat.h index 5c9e4fb..a1a45b6 100644 --- a/include/util/compat.h +++ b/include/util/compat.h @@ -120,4 +120,8 @@ ssize_t getline(char **line, size_t *n, FILE *fp); char *strndup(const char *str, size_t max_len); #endif +#ifndef HAVE_GETSUBOPT +int getsubopt(char **opt, char *const *keys, char **val); +#endif + #endif /* COMPAT_H */ -- cgit v1.2.3