O_NOFOLLOW is specified by posix-2008 and varies by target, don't try to supply them for broken headers.
diff --git a/lib/portability.h b/lib/portability.h
index d0726b9..feaf789 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -30,14 +30,6 @@
 
 // Various constants old build environments might not have even if kernel does
 
-#ifndef O_DIRECTORY
-#define O_DIRECTORY 0200000
-#endif
-
-#ifndef O_NOFOLLOW
-#define O_NOFOLLOW  0400000
-#endif
-
 #ifndef AT_FDCWD
 #define AT_FDCWD -100
 #endif