This fixes some warnings.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
# include <config.h>
#endif
#define _XPG4_2 /* ancilliary data on Solaris */
# include <config.h>
#endif
#define _XPG4_2 /* ancilliary data on Solaris */
+#elif defined( HAVE_GETENV )
else
{
psz = getenv( "http_proxy" );
else
{
psz = getenv( "http_proxy" );
system_mask >>= 1;
}
return count;
system_mask >>= 1;
}
return count;
-#elif HAVE_SCHED_GETAFFINITY
+#elif defined(HAVE_SCHED_GETAFFINITY)
cpu_set_t cpu;
CPU_ZERO(&cpu);
if (sched_getaffinity(0, sizeof(cpu), &cpu) < 0)
cpu_set_t cpu;
CPU_ZERO(&cpu);
if (sched_getaffinity(0, sizeof(cpu), &cpu) < 0)
#include <stdarg.h> /* va_list for BSD */
#ifdef __APPLE__
# include <xlocale.h>
#include <stdarg.h> /* va_list for BSD */
#ifdef __APPLE__
# include <xlocale.h>
+#elif defined(HAVE_LOCALE_H)
# include <locale.h>
#endif
#include <errno.h> /* errno */
# include <locale.h>
#endif
#include <errno.h> /* errno */