Index: uspace/app/viewer/viewer.c
===================================================================
--- uspace/app/viewer/viewer.c	(revision 58898d1d7329ba67528bada931d3269d42936354)
+++ uspace/app/viewer/viewer.c	(revision 79ea5af7eec765b8d511aeadc76b09d6eebb8be0)
@@ -36,5 +36,5 @@
 #include <unistd.h>
 #include <fcntl.h>
-#include <sys/stat.h>
+#include <vfs/vfs.h>
 #include <errno.h>
 #include <malloc.h>
@@ -115,6 +115,6 @@
 	
 	struct stat stat;
-	int rc = fstat(fd, &stat);
-	if (rc != 0) {
+	int rc = vfs_stat(fd, &stat);
+	if (rc != EOK) {
 		close(fd);
 		return false;
