Merge pull request #3214 from rpv-tomsk/issue-3181
authorrjablonx <36538481+rjablonx@users.noreply.github.com>
Tue, 16 Jul 2019 10:53:11 +0000 (12:53 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2019 10:53:11 +0000 (12:53 +0200)
Issue 3181

configure.ac
src/disk.c

index 2289aa4..a2fb6be 100644 (file)
@@ -165,6 +165,7 @@ AC_CHECK_HEADERS_ONCE([ \
   kstat.h \
   kvm.h \
   libgen.h \
+  locale.h \
   mntent.h \
   mnttab.h \
   netdb.h \
@@ -742,26 +743,12 @@ test_cxx_flags() {
 #
 AC_CHECK_FUNCS_ONCE([ \
     asprintf \
-    closelog \
-    getaddrinfo \
-    getgrnam_r \
-    getnameinfo \
     getpwnam \
     getpwnam_r \
-    gettimeofday \
     if_indextoname \
-    openlog \
-    regcomp \
-    regerror \
-    regexec \
-    regfree \
-    select \
     setenv \
     setgroups \
-    strcasecmp \
-    strdup \
-    strncasecmp \
-    sysconf
+    setlocale
   ]
 )
 
index 3faef9d..c02b6ab 100644 (file)
@@ -59,9 +59,6 @@
 #include <libgeom.h>
 #endif
 
-#if HAVE_LIMITS_H
-#include <limits.h>
-#endif
 #ifndef UINT_MAX
 #define UINT_MAX 4294967295U
 #endif