[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_CHECK_SIZEOF for members
From: |
Sam Steingold |
Subject: |
AC_CHECK_SIZEOF for members |
Date: |
Tue, 10 May 2005 09:49:25 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
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.
- AC_CHECK_SIZEOF for members,
Sam Steingold <=