Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
db2ee941
Commit
db2ee941
authored
Apr 17, 2000
by
Niels Möller
Browse files
* configure.in (lsh_cv_c_offsetof): Check for offsetof.
Rev: configure.in:1.64
parent
a4f15166
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.in
View file @
db2ee941
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment