Index: uspace/lib/posix/fcntl.h
===================================================================
--- uspace/lib/posix/fcntl.h	(revision f51f1938507c8e76d8166e8355d3d1d892c9dae0)
+++ uspace/lib/posix/fcntl.h	(revision 6817eba10030a28743541ff86eeb296a080b9f74)
@@ -38,4 +38,5 @@
 #include "sys/types.h"
 #include "libc/fcntl.h"
+#include "errno.h"
 
 /* Mask for file access modes. */
@@ -72,7 +73,7 @@
 
 #undef open
-#define open(path, oflag, ...) \
+#define open(path, ...) \
 	({ \
-		int rc = open(path, oflag, ##__VA_ARGS__); \
+		int rc = open(path, ##__VA_ARGS__); \
 		if (rc < 0) { \
 			errno = -rc; \
