lkml.org 
[lkml]   [1996]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectwarning: no previous prototype for `cmsg_nxthdr' in 2.1.13

When compiling some of my code, I get the following error:

In file included from /usr/include/sys/socket.h:5,
from /usr/include/netinet/in.h:23,
from /usr/include/rpc/rpc.h:45,
from rpcutil_xdr.c:1:
/usr/include/linux/socket.h:69: warning: no previous prototype for `cmsg_nxthdr'

I got around it using this patch:
*** /usr/src/linux-2.1.13/include/linux/socket.h Sat Nov 30
12:28:20 1996
--- /usr/src/linux-2.1.13/include/linux/socket.h.~1~ Sat Nov 30
12:27:31 1996
***************
*** 60,67 ****
#define CMSG_DATA(cmsg) cmsg->cmsg_data
#define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr(mhdr, cmsg)
#define CMSG_FIRST(mhdr) ((struct cmsghdr *) (mhdr)->msg_control)
- extern __inline__ struct cmsghdr * cmsg_nxthdr(struct msghdr *mhdr,
- struct cmsghdr *cmsg);

extern __inline__ struct cmsghdr * cmsg_nxthdr(struct msghdr *mhdr,
struct cmsghdr *cmsg)
--- 60,65 ----


Roel Lascano
rlascano@in-tech.com

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.049 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site