Index: net.c =================================================================== --- net.c (revision 218) +++ net.c (working copy) @@ -121,6 +121,12 @@ #include #endif +#ifdef HAVE_STDDEF_H +#include +#else +#define offsetof(st, m) ((size_t) ( (char *)&((st *)(0))->m - (char *)0 )) +#endif + #ifdef HAVE_SYS_STAT_H #include #endif Index: configure.ac =================================================================== --- configure.ac (revision 218) +++ configure.ac (working copy) @@ -115,6 +115,7 @@ setjmp.h \ signal.h \ stdarg.h \ + stddef.h \ stdio.h \ string.h \ strings.h \