]> err.no Git - linux-2.6/blobdiff - include/linux/net.h
tridentfb: improve probe function
[linux-2.6] / include / linux / net.h
index 3a9b06d4d0fe5d0f2acf265b83f93b70f8eca419..2f999fbb188dbfc01766c63189bd35017e65ba1d 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <linux/wait.h>
 #include <linux/socket.h>
-#include <linux/fcntl.h>       /* For O_CLOEXEC */
+#include <linux/fcntl.h>       /* For O_CLOEXEC and O_NONBLOCK */
 #include <asm/socket.h>
 
 struct poll_table_struct;
@@ -102,6 +102,9 @@ enum sock_type {
 
 /* Flags for socket, socketpair, paccept */
 #define SOCK_CLOEXEC   O_CLOEXEC
+#ifndef SOCK_NONBLOCK
+#define SOCK_NONBLOCK  O_NONBLOCK
+#endif
 
 #endif /* ARCH_HAS_SOCKET_TYPES */