Look for "stddef.h", and if found, include it in the various
configure checks. Also use it at run time.
AC_TRY_COMPILE([
$1
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
#endif
fi
-else
- LIBTOOL="`pwd`/libtool"
+else
+
+ LIBTOOL="`pwd`/libtool"
+
+
+
for ac_header in \
unistd.h \
crypt.h \
prot.h \
pwd.h \
grp.h \
+ stddef.h \
fnmatch.h \
sia.h \
siad.h
+
for ac_header in \
openssl/ssl.h \
openssl/crypto.h \
/* end confdefs.h. */
#include <utmpx.h>
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
#endif
/* end confdefs.h. */
#include <netinet/in.h>
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
#endif
/* end confdefs.h. */
#include <netinet/in.h>
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
#endif
prot.h \
pwd.h \
grp.h \
+ stddef.h \
fnmatch.h \
sia.h \
siad.h
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
+/* Define to 1 if you have the <stddef.h> header file. */
+#undef HAVE_STDDEF_H
+
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
#include <stdint.h>
#endif
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
+
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif