Add posix SHUT_RD/SHUT_WR/SHUT_RDWR macros
authorArnaud Lacombe <lacombar@gmail.com>
Tue, 1 Dec 2009 08:38:17 +0000 (03:38 -0500)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 1 Dec 2009 17:57:48 +0000 (09:57 -0800)
Added on commit 91cf45f0 by Trond Myklebust in include/linux/net.h.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
compat-2.6.24.h

index d8f7c2c..68d33c7 100644 (file)
 /* Added on 2.6.24 in include/linux/types.h by Al viro on commit 142956af */
 typedef unsigned long               uintptr_t;
 
+/* From include/linux/net.h */
+enum sock_shutdown_cmd {
+       SHUT_RD         = 0,
+       SHUT_WR         = 1,
+       SHUT_RDWR       = 2,
+};
+
 #if (LINUX_VERSION_CODE == KERNEL_VERSION(2,6,23)) /* Local check */
 /* Added as of 2.6.24 in include/linux/skbuff.h.
  *