Merge pull request #2868 from akoeplinger/maccore-fixes
[mono.git] / configure.ac
index 12ed84fb8431368f42b8760dd8216a919921ccd6..66174bea4e6ca48e97e79b77831ac17db5ad92b2 100644 (file)
@@ -1076,6 +1076,7 @@ if test x$host_win32 = xno; then
 
        dnl hires monotonic clock support
        AC_SEARCH_LIBS(clock_gettime, rt)
+       AC_CHECK_FUNCS(clock_nanosleep)
 
        dnl dynamic loader support
        AC_CHECK_FUNC(dlopen, DL_LIB="",
@@ -2317,6 +2318,9 @@ else
                #include <winsock2.h>
                #include <ws2tcpip.h>
        ], [
+               #ifndef inet_pton
+               (void) inet_pton;
+               #endif
                inet_pton (0, NULL, NULL);
        ], [
                # Yes, we have it...