]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove unused/unneeded/add missing defines from configure/cmake
authorArne Schwabe <arne@rfc2549.org>
Fri, 1 Dec 2023 12:32:11 +0000 (13:32 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 2 Dec 2023 15:08:10 +0000 (16:08 +0100)
Change-Id: Ifd0376b36d4050dc22bc93b8fcf7ed29faef0021
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20231201123211.17619-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27634.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
CMakeLists.txt
config.h.cmake.in
configure.ac

index d21c9bdf3f1521d1c878277298380726667e0ed7..4aa979345d95b70ff39bc0b331a64fff7d491292 100644 (file)
@@ -167,6 +167,7 @@ check_symbol_exists(syslog syslog.h HAVE_SYSLOG)
 check_symbol_exists(getgrnam grp.h HAVE_GETGRNAM)
 check_symbol_exists(getpwnam pwd.h HAVE_GETPWNAM)
 check_symbol_exists(getsockname sys/socket.h HAVE_GETSOCKNAME)
+check_symbol_exists(getrlimit "sys/time.h;sys/resource.h" HAVE_GETRLIMIT)
 
 # Some OS (e.g. FreeBSD) need some basic headers to allow
 # including network headers
index 19b79bc004fe1a641068ced780d8e76b495cd0be..848c5057aa4aef840b3c78223448af149a29f92c 100644 (file)
@@ -140,7 +140,7 @@ don't. */
 #cmakedefine HAVE_GETPWNAM
 
 /* Define to 1 if you have the `getrlimit' function. */
-#undef HAVE_GETRLIMIT
+#cmakedefine HAVE_GETRLIMIT
 
 /* Define to 1 if you have the `getsockname' function. */
 #cmakedefine HAVE_GETSOCKNAME
@@ -235,8 +235,6 @@ don't. */
 /* Define to 1 if you have the <pwd.h> header file. */
 #cmakedefine HAVE_PWD_H
 
-/* Define to 1 if you have the `readv' function. */
-#undef HAVE_READV
 
 /* Define to 1 if you have the `recvmsg' function. */
 #cmakedefine HAVE_RECVMSG
@@ -383,9 +381,6 @@ don't. */
 /* Define to 1 if you have the <vfork.h> header file. */
 #undef HAVE_VFORK_H
 
-/* Define to 1 if you have the `vsnprintf' function. */
-#undef HAVE_VSNPRINTF
-
 /* we always assume a recent mbed TLS version */
 #define HAVE_MBEDTLS_PSA_CRYPTO_H 1
 #define HAVE_MBEDTLS_SSL_TLS_PRF 1
index 84eaad604971fbf925197a6b19037ea184c11971..141acc6cad95cb4acffad61f7059b20496717929 100644 (file)
@@ -655,7 +655,7 @@ AC_FUNC_FORK
 AC_CHECK_FUNCS([ \
        daemon chroot getpwnam setuid nice system dup dup2 \
        syslog openlog mlockall getrlimit getgrnam setgid \
-       setgroups flock readv writev time gettimeofday \
+       setgroups flock time gettimeofday \
        setsid chdir \
        chsize ftruncate execve getpeereid basename dirname access \
        epoll_create strsep \