Probably safer to use #ifdef (defined), vs. assuming it exists and testing
the value, i.e.

#ifdef MYSQL_OPT_RECONNECT
    mysql_options(sql->conn, MYSQL_OPT_RECONNECT, &do_reconnect);
#endif


-----Burton

(Please note that I am speaking only as an individual and not as a
representative of my employer) 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Lorenzo De Vito
Sent: Wednesday, August 23, 2006 4:51 PM
To: [email protected]
Subject: Re: [Ntop-dev] make error database.c

Troy Perkins wrote:
> Thanks Enrico, I found that before sending to the mailing list and did 
> tried changing the 1 to a 0 for MYSQL_OPT_RECONNECT in database.c - 
> still get the same problem.

so, I think, but I'm not a NTOP developer :-), a way to resolve your problem
is the following:

replace:

mysql_options(sql->conn, MYSQL_OPT_RECONNECT, &do_reconnect);

with:

#if MYSQL_VERSION_ID >= 50013
    mysql_options(sql->conn, MYSQL_OPT_RECONNECT, &do_reconnect); #endif


Bye :-)


--
___________________________________________________
Enrico Lorenzo De Vito IT MANAGER at SDT S.p.A.
EUCIP Elective Information System Analyst Certified EUCIP Core Certified N.
ITA0000001576 - AIP N. 2884 Tel. 3477324347 - Tel. 3922092003 - Tel.
085413686 _______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to