AC_CHECK_SIZEOF for members

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How do I check for sizeof of struct members?

E.g., <utmpx.h> declares struct utmpx which has a member ut_tv which is
supposed to be just like struct timeval except that GLIBC 2.3.2 uses
32-bit slots for the utmpx->ut_tv even on 64-bit platforms, so
SIZEOF_STRUCT_TIMEVAL is useless here.

So, how do I find out

    struct utmpx u;
    sizeof(u.ut_tv.tv_sec);

it appears that AC_CHECK_SIZEOF works only with types, not members.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.palestinefacts.org/> <http://ffii.org/>
<http://www.iris.org.il> <http://www.jihadwatch.org/>
Life is a sexually transmitted disease with 100% mortality.



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux