[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_SIZEOF for members
From: |
Paul Eggert |
Subject: |
Re: AC_CHECK_SIZEOF for members |
Date: |
Tue, 10 May 2005 16:46:27 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Sam Steingold <address@hidden> writes:
> it appears that AC_CHECK_SIZEOF works only with types, not members.
Yes, that's correct. You'd need to write a variant to do what you want.
Wouldn't it be easier to do this within C? E.g.:
struct utmpx u;
enum {
GLIBC_2_3_2_STRUCT_UTMPX_BUG =
(sizeof u.ut_tv != sizeof (struct timeval))
};
if (GLIBC_2_3_2_STRUCT_UTMPX_BUG) ...