Make sure to #include <stddef.h> when using offsetof().

This commit is contained in:
Nicholas J. Kain 2010-11-16 17:41:46 -05:00
parent 9dce1a0378
commit fb56a9cb2b
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <sys/socket.h> #include <sys/socket.h>

View File

@ -1,3 +1,4 @@
#include <stddef.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <netinet/in.h> #include <netinet/in.h>