summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2022-10-16 10:28:58 -0700
committerWayne Davison <wayne@opencoder.net>2022-10-16 10:28:58 -0700
commit025596757ccd21226b3306b11cc7c8d94b6f7a6f (patch)
tree60ef5faf9b6c9e738fdae0d1c8d29c0de62d1c5f
parent449d9bf950d0c408d93263a545b1d0e9e48bf14b (diff)
downloadrsync-025596757ccd21226b3306b11cc7c8d94b6f7a6f.tar.gz
Silence autoconf warnings.
-rw-r--r--configure.ac16
-rw-r--r--m4/have_type.m41
-rw-r--r--rsync.h8
3 files changed, 8 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac
index 8ad6137e..a2c99558 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,6 @@ AC_INIT([rsync],[ ],[https://rsync.samba.org/bug-tracking.html])
AC_C_BIGENDIAN
AC_HEADER_DIRENT
-AC_HEADER_TIME
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
unistd.h utime.h compat.h sys/param.h ctype.h sys/wait.h sys/stat.h \
@@ -20,7 +19,7 @@ AC_HEADER_MAJOR_FIXED
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([byteorder.h])
-AC_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS([config.h])
AC_PREREQ([2.69])
PACKAGE_VERSION=`sed -n 's/.*RSYNC_VERSION.*"\(.*\)".*/\1/p' <$srcdir/version.h`
@@ -61,7 +60,6 @@ AC_PROG_AWK
AC_PROG_EGREP
AC_PROG_INSTALL
AC_PROG_MKDIR_P
-AC_PROG_CC_STDC
AC_SUBST(SHELL)
AC_PATH_PROG([PERL], [perl])
AC_PATH_PROG([PYTHON3], [python3])
@@ -390,7 +388,7 @@ AS_HELP_STRING([--disable-ipv6],[disable to omit ipv6 support]),
;;
esac ],
- AC_TRY_RUN([ /* AF_INET6 availability check */
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[ /* AF_INET6 availability check */
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -401,11 +399,11 @@ main()
else
exit(0);
}
-],
- AC_MSG_RESULT(yes)
- AC_DEFINE(INET6, 1, [true if you have IPv6]),
- AC_MSG_RESULT(no),
- AC_MSG_RESULT(no)
+]])],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(INET6, 1, true if you have IPv6)],
+ [AC_MSG_RESULT(no)],
+ [AC_MSG_RESULT(no)]
))
dnl Do you want to disable use of locale functions
diff --git a/m4/have_type.m4 b/m4/have_type.m4
index 704ca33b..12fc719e 100644
--- a/m4/have_type.m4
+++ b/m4/have_type.m4
@@ -1,6 +1,5 @@
dnl AC_HAVE_TYPE(TYPE,INCLUDES)
AC_DEFUN([AC_HAVE_TYPE], [
-AC_REQUIRE([AC_HEADER_STDC])
cv=`echo "$1" | sed 'y%./+- %__p__%'`
AC_MSG_CHECKING(for $1)
AC_CACHE_VAL([ac_cv_type_$cv],
diff --git a/rsync.h b/rsync.h
index 2c5e5376..d3709fe0 100644
--- a/rsync.h
+++ b/rsync.h
@@ -366,16 +366,10 @@ enum delret {
#include <sys/socket.h>
#endif
-#ifdef TIME_WITH_SYS_TIME
-#include <sys/time.h>
-#include <time.h>
-#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
-#else
-#include <time.h>
-#endif
#endif
+#include <time.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>