On 11-Oct-2006, at 10:04 AM, chris jalbert wrote:

On 10-Oct-2006, at 4:00 PM, Thomas Anders wrote:

Dave Shield wrote:
On 10/10/06, Thomas Anders <[EMAIL PROTECTED]> wrote:
1) OpenBSD4 headers

Huh? We neither have openbsd3.h nor openbsd4.h, but just openbsd.h.

OK - in that case, I don't understand the comment
   "openbsd4 uses openbsd.h, and thus a lot of openbsd3 code
    that most likely works on openbsd4 is excluded"

I'd assumed this was referring to a file openbsd3.h.  Clearly not.
Can someone please clarify the precise issue here.

Robert has logged this issue, not me, but anyway: On OpenBSD 3.x configure adds
a "-Dopenbsd3=openbsd3" while on OpenBSD 4.x it adds "-Dopenbsd4=openbsd4", of
course. Our code only has #ifdefs for openbsd3 (and/or earlier). We either need
to adjust the code to add "|| defined(openbsd4)" or add something like the
following to openbsd.h:

#ifdef openbsd4
#undef openbsd3
#define openbsd3 openbsd3
#endif

The latter is only appropriate if "openbsd3" is to be understood as "3.x or
later" (like we do for freebsd).

Whatever we chose will need to be done again when OpenBSD 5.x comes out.

Here is what I do for Darwin / OS X. I'm trying to build on Tiger (10.4 / Darwin 8) and Leopard (10.5 / Darwin 9) and am ignoring Panther (10.3 / Darwin 7) because the latter has very different APIs (thank a lot to the Intel transition).

Configure defines the OS release, i.e. darwin8 or darwin9. In the respective header file (I created one for each) I also define darwin and set it to the release number, e.g. "#define darwin 8" on Tiger, which allows me to write "#if (darwin >= 8)" for tests. Sounds like BSD could use a similar mechanism...

And yes, I'll post these patches shortly; I haven't yet because I was still fighting with some of the build issues and I have to break them up.

Patches posted.

--chris
net-snmp-owners at group.apple.com



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to