patch-2.1.25 linux/include/linux/socket.h
Next file: linux/include/linux/sysctl.h
Previous file: linux/include/linux/sdlasfm.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Feb 2 15:18:47 1997
- Orig file:
v2.1.24/linux/include/linux/socket.h
- Orig date:
Thu Jan 23 21:06:52 1997
diff -u --recursive --new-file v2.1.24/linux/include/linux/socket.h linux/include/linux/socket.h
@@ -74,7 +74,22 @@
(struct cmsghdr *)(msg)->msg_control : \
(struct cmsghdr *)NULL)
-extern __inline__ struct cmsghdr * cmsg_nxthdr(struct msghdr *mhdr,
+/*
+ * This mess will go away with glibc
+ */
+
+#ifdef __KERNEL__
+#define KINLINE extern __inline__
+#else
+#define KINLINE static
+#endif
+
+
+/*
+ * Get the next cmsg header
+ */
+
+KINLINE struct cmsghdr * cmsg_nxthdr(struct msghdr *mhdr,
struct cmsghdr *cmsg)
{
unsigned char * ptr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov