summaryrefslogtreecommitdiffstats
path: root/include/strutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/strutils.h')
-rw-r--r--include/strutils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h
index e24496d3c..31cf80603 100644
--- a/include/strutils.h
+++ b/include/strutils.h
@@ -3,6 +3,7 @@
#include <inttypes.h>
#include <string.h>
+#include <sys/types.h>
extern int strtosize(const char *str, uintmax_t *res);
extern long strtol_or_err(const char *str, const char *errmesg);
@@ -23,4 +24,7 @@ static inline void xstrncpy(char *dest, const char *src, size_t n)
strncpy(dest, src, n-1);
dest[n-1] = 0;
}
+
+extern void strmode(mode_t mode, char *str);
+
#endif