Re: AC_CHECK_SIZEOF for members

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

 



Sam Steingold <sds@xxxxxxx> 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) ...


_______________________________________________
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