Index: uspace/lib/posix/sys/stat.h
===================================================================
--- uspace/lib/posix/sys/stat.h	(revision 39a7bfaf70b19e4005243ec89a0017a9fa2b6660)
+++ uspace/lib/posix/sys/stat.h	(revision 79506d66f2636c3deaec24977cd2aea13dfba7d9)
@@ -40,4 +40,9 @@
 #include "types.h"
 #include "../time.h"
+#include <ipc/devmap.h>
+#include <task.h>
+
+typedef devmap_handle_t posix_dev_t;
+typedef task_id_t posix_pid_t;
 
 /* values are the same as on Linux */
@@ -134,4 +139,6 @@
 
 #ifndef LIBPOSIX_INTERNAL
+	#define dev_t posix_dev_t
+	#define pid_t posix_pid_t
 	#define fstat posix_fstat
 	#define lstat posix_lstat
