Commit db2ee941 authored by Niels Möller's avatar Niels Möller
Browse files

* configure.in (lsh_cv_c_offsetof): Check for offsetof.

Rev: configure.in:1.64
parent a4f15166
......@@ -528,6 +528,20 @@ if test "x$lsh_cv_c_FUNCTION" = "xyes"; then
AC_DEFINE(HAVE_GCC_FUNCTION)
fi
dnl Check for the offsetof macro
dnl FIXME: This is usually defined in stddef.h
AC_CACHE_CHECK(for offsetof,
lsh_cv_c_offsetof,
[ AC_TRY_COMPILE(,
[ struct s { int a; int b; };
int foo(void) { return offsetof(struct s, b); } ],
lsh_cv_c_offsetof=yes,
lsh_cv_c_offsetof=no)])
if test "x$lsh_cv_c_offsetof" = "xyes"; then
AC_DEFINE(HAVE_C_OFFSETOF)
fi
AC_MSG_CHECKING(for BSD pty names)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment