More weird stuff

Julien ÉLIE julien at trigofacile.com
Wed Jan 28 07:17:48 UTC 2009


Hi Russ,

> We should avoid tests for specific hosts and instead use the Autoconf
> probe for whether a function is declated.  That will mean changing the
> conditional to look like the one for snprintf in the header, but leaving
> the same conditional in the library code to determine whether the function
> is built.

OK.
As for setproctitle, we will need another variable because HAVE_SETPROCTITLE
should be 0 for the first occurrence and 1 for the second on BSD/OS.
Otherwise, there are compilation errors.
(Maybe HAVE_SETPROCTITLE_INIT?)

The code is in include/portable/setproctitle.h:

#if !HAVE_SETPROCTITLE
void setproctitle(const char *format, ...);
#endif

#if HAVE_SETPROCTITLE || HAVE_PSTAT
# define setproctitle_init(argc, argv)   /* empty */
#else
void setproctitle_init(int argc, char *argv[]);
#endif


>> -     AC_CHECK_HEADERS([sys/vfs.h sys/param.h sys/mount.h])])
>> +     AC_CHECK_HEADERS([sys/vfs.h sys/mount.h])
>> +     AC_CHECK_HEADERS(sys/mount.h, [], [],
>
> I think you meant to leave sys/param.h in the initial check line, right?

Sure!  Thanks.

-- 
Julien ÉLIE

« Gloria uictis. » (Tite-Live)




More information about the inn-workers mailing list