aboutsummaryrefslogtreecommitdiff
path: root/include/util
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-28 21:06:56 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-28 21:08:12 +0100
commit587a56c4fb08ceac99752a6208d5585ba1f17957 (patch)
tree83d617f1c55cdaa9ece2d76c7d544f429274058c /include/util
parent534c573adf534c29fce8a23a46eb82f154885588 (diff)
Add fallback implementation for getsubopt()
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/util')
-rw-r--r--include/util/compat.h4
1 files changed, 4 insertions, 0 deletions
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 */