MacOS does not have values.h file.
sys/socket.h \
sys/types.h \
sys/xti.h \
+ values.h \
])
# Check functions.
#include <string.h>
#include <strings.h>
#include <error.h>
+#ifdef HAVE_VALUES_H
#include <values.h>
+#endif
#include <netdb.h>
#include <netinet/in.h>
if (str != NULL && *str != '\0') {
errno = 0;
num = strtod (str, &end);
- if (errno == 0 && str != end && end != NULL && *end == '\0' &&
- num < FLT_MAX)
+ if (errno == 0 && str != end && end != NULL && *end == '\0'
+#ifdef FLT_MAX
+ && num < FLT_MAX
+#endif
+ )
return num;
}
error (EXIT_FAILURE, errno, "%s: '%s'", errmesg, str);