Hello listmates,

I've just submitted a patch to deal with a portability issue, but I know
that anything involving configure is prone to unintended consequences. I
wanted to discuss it a bit here.

http://sourceforge.net/tracker/index.php?func=detail&aid=1006298&group_id=12694&atid=312694

The short description is that the code now doesn't deal well with the
tm.tm_gmtoff struct member, using an ugly set of #ifdefs to decide if
this field exists: it's trying to use system-test macros:

#if !defined(SYSV) && !defined(aix4) && !defined(aix5) && !defined(WIN32) && 
!defined(irix6)

This is a *terrible* way to do this, because things like "SYSV" are a
little bit vague, and the whole chain gets exponentially ugly as it
gets longer.

I spent a day and a half (ugh!) figuring out how to add a bit of code to
configure so it defines STRUCT_TM_HAS_TM_GMTOFF, and the code that needs
it uses it.

Now to do the rest of the Unixware fixes :-(

Steve

-- 
Stephen J Friedl | Security Consultant |  UNIX Wizard  |   +1 714 544-6561
www.unixwiz.net  | Tustin, Calif. USA  | Microsoft MVP | [EMAIL PROTECTED]


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to