Messages in this thread Patch in this message | | | Date | Wed, 18 Dec 1996 15:53:59 -0500 (EST) | From | "Richard B. Johnson" <> | Subject | Socket header |
| |
In the following include file, cmsg_data[0] is not properly declared. We need to declare the first element in an array of unknown size. ANSI allows cmsg_data[1], but not cmsg_data[0]. I have recompiled the kernel with this change and everything is okay. I also recompiled several network programs that use sockets and they compile and work.
--- /usr/include/linux/socket.h Wed Dec 18 15:40:33 1996 +++ /usr/include/linux/socket.h.orig Wed Dec 18 15:40:16 1996 @@ -50,7 +50,7 @@ size_t cmsg_len; /* data byte count, including hdr */ int cmsg_level; /* originating protocol */ int cmsg_type; /* protocol-specific type */ - unsigned char cmsg_data[1]; + unsigned char cmsg_data[0]; }; /*
Cheers, Dick Johnson -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard B. Johnson Project Engineer Analogic Corporation Voice : (508) 977-3000 ext. 3754 Fax : (508) 532-6097 Modem : (508) 977-6870 Ftp : ftp@boneserver.analogic.com Email : rjohnson@analogic.com, johnson@analogic.com Penguin : Linux version 2.1.15 on an i586 machine. Warning : It's hard to remain at the trailing edge of technology. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| |