Citeren Charles Lepple <[email protected]>:

You were very close with the first _XOPEN_SOURCE addition - I think it
just needs to be set to a specific version. Let's see how r2267 fares.

We're close now, but I think we need to use

    AC_DEFINE(_XOPEN_SOURCE, 500)

at the top of configure.in instead. What happens now, is that we explicitly *disable* functions that are in not in SUSv2. One example is snprintf() on FreeBSD (which is a SUSv3 / C99 function). We do provide our own (if one is not available), but that one will not be used since we test for presence *before* we specify this version in mge-hid.c.

It might be even better to up the standards to

    AC_DEFINE(_XOPEN_SOURCE, 600)

to unlock SUSv3 compliance (POSIX 2001 and C99). But then the question is, how many older systems would no longer be able to build NUT? Any thoughts?

Best regards, Arjen
--
Please keep list traffic on the list


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to