SNMP compile collision on Windows

From: Guido Serassio <serassio@dont-contact.us>
Date: Sat, 14 Sep 2002 21:03:37 +0200

Hi Henrik,

Compiling SNMP on Windows there is a collision on the OPAQUE and OPTIONAL
defines in snmplib/parse.c.

I have found two solutions for this:

1 - add the following code at the bottom of parse.c:

#ifdef _SQUID_MSWIN_
#undef OPAQUE
#undef OPTIONAL
#endif

2 - Rename OPAQUE and OPTIONAL as SNMP_OPAQUE and SNMP_OPTIONAL, as in the
attached patch file.

What is Your opinion about ?

Regards

Guido

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: guido.serassio@serassio.it
WWW: http://www.serassio.it

Received on Sat Sep 14 2002 - 13:04:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:32 MST