Re: [Plib-users] need help compiling plib
Brought to you by:
sjbaker
|
From: Mathew K. <ma...@ne...> - 2002-04-22 02:41:32
|
I added sys/types.h to netSocket.cxx and also had to remove the code that typedef socklen_t to int to make it compile. Thanks for the help. ----- Date: Sun, 21 Apr 2002 19:38:21 +0200 From: Sebastian Ude <ud...@ha...> To: pli...@li... Subject: Re: [Plib-users] need help compiling plib Reply-To: ud...@ha... The source file should include "sys/types.h", but it doesn't. (To the original author: typedef'ing "socklen_t" to be "int" is not a solution. Passing a pointer to your home-made type to a library function is dangerous, since nobody gurantees that the "socklen_t" of the C library and your definition have the same size. "man recv" explicitly says that both "sys/socket.h" and "sys/types.h must be included. I guess including "sys/types.h" will fix the problem for you. Please try it and report if it did so that we can fix this bug in CVS. - Sebastian --__--__-- _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users End of plib-users Digest |