Index: uspace/app/bithenge/linux/os.h
===================================================================
--- uspace/app/bithenge/linux/os.h	(revision da0fef6126d5ca1836cfcd2bb32043a899aff458)
+++ uspace/app/bithenge/linux/os.h	(revision 03b2b2c641e73ecbc2828da79253cb7dd68e6062)
@@ -85,4 +85,9 @@
 }
 
+static inline char *str_ndup(const char *s, size_t max_len)
+{
+	return strndup(s, max_len);
+}
+
 static inline const char *str_error(int e)
 {
