Skip to content

Commit

Permalink
Remove unused/unneeded/add missing defines from configure/cmake
Browse files Browse the repository at this point in the history
Change-Id: Ifd0376b36d4050dc22bc93b8fcf7ed29faef0021
Signed-off-by: Arne Schwabe <[email protected]>
Acked-by: Frank Lichtenheld <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg27634.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
schwabe authored and cron2 committed Dec 2, 2023
1 parent 664dde8 commit 28871fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions config.h.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 28871fe

Please sign in to comment.