--- a/src/upmpdutils.hxx
+++ b/src/upmpdutils.hxx
@@ -21,6 +21,8 @@
 #include <unordered_map>
 #include <vector>
 #include <unordered_set>
+
+#include <unistd.h>
 
 namespace UPnPClient {
     class UPnPDirObject;
@@ -131,4 +133,6 @@
 
 #define UPMPD_UNUSED(X) (void)(X)
 
+extern bool ensureconfreadable(const char *fn, const char *user, uid_t uid,
+                               gid_t gid);
 #endif /* _UPMPDUTILS_H_X_INCLUDED_ */