STC - this program does nothing useful when executed; it merely exists
to show a compilation problem extracted from a larger program:
$ cat foo.c
#ifdef WORKAROUND
# include sys/socket.h
#endif
#include sys/un.h
#include sys/socket.h
int main(void) {
const struct msghdr msg;
return sendmsg(0,
On 05/30/2013 11:37 AM, Eric Blake wrote:
foo.c:9:5: warning: passing argument 2 of 'sendmsg' from incompatible
pointer type
/usr/include/sys/socket.h:42:11: note: expected 'const struct msghdr *'
but argument is of type 'const struct msghdr *'
$ gcc -o foo -Wall foo.c -DWORKAROUND
$
Gcc
On May 30 11:37, Eric Blake wrote:
STC - this program does nothing useful when executed; it merely exists
to show a compilation problem extracted from a larger program:
$ cat foo.c
#ifdef WORKAROUND
# include sys/socket.h
#endif
#include sys/un.h
#include sys/socket.h
int main(void) {
On 05/30/2013 02:03 PM, Corinna Vinschen wrote:
so that the compiler really is complaining about two different
incompatible 'struct msghdr' layouts. I'm not quite sure what the fix
should be, [...]
Try this:
Index: cygwin/if.h
4 matches
Mail list logo