On Fri, Feb 4, 2011 at 3:14 AM, <[email protected]> wrote:

>
> Sorry, I got my error all wrong. :-(  It is about not having the variable
> declared.  The code snippet is really:
>
> #ifndef cygwin
>     /*
>      * Timezone offset
>      */
>     {
> #ifdef HAVE_STRUCT_TM_TM_GMTOFF
>     const int tzoffset = tm_p->tm_gmtoff;
> #else
>     const int tzoffset = timezone;
> #endif
>
> since the target is not cygwin  the #else is what is being used. In the
> declarations in this function, date_n_time, the pointer is declared but not
> timezone, and it isn't passed in as a parameter.
>
> Is there some setting for ./configure for the condition not cygwin
> concerning GMT offset that is suppose to be used?
>

To answer your original question: according to the Single Unix
Specification, the variable timezone should be declared in <time.h>. Does
the header file <time.h> included with your cross-compiler define that
variable ?

And how did configure #define TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H on your
setup (see also include/net-snmp/net-snmp-config.h) ?

Bart.
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to