[SCM] The rsync repository. - branch master updated
Rsync CVS commit messages
rsync-cvs at lists.samba.org
Tue Apr 7 22:17:51 UTC 2020
The branch, master has been updated
via 5e4a1441 Avoid the include warnings for major().
from 9dea2ae8 Make use of the new RSYNC_PORT env var.
https://git.samba.org/?p=rsync.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 5e4a1441cb339214fa9520f6607288865fd2aa2d
Author: Wayne Davison <wayned at samba.org>
Date: Tue Apr 7 15:16:19 2020 -0700
Avoid the include warnings for major().
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 2 +-
m4/header_major_fixed.m4 | 27 +++++++++++++++++++++++++++
prepare-source.mak | 2 +-
3 files changed, 29 insertions(+), 2 deletions(-)
create mode 100644 m4/header_major_fixed.m4
Changeset truncated at 500 lines:
diff --git a/configure.ac b/configure.ac
index 2752b6a4..5ca7a55e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -351,7 +351,7 @@ AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h \
popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \
zlib.h)
-AC_HEADER_MAJOR
+AC_HEADER_MAJOR_FIXED
AC_CACHE_CHECK([if makedev takes 3 args],rsync_cv_MAKEDEV_TAKES_3_ARGS,[
AC_RUN_IFELSE([AC_LANG_SOURCE([[
diff --git a/m4/header_major_fixed.m4 b/m4/header_major_fixed.m4
new file mode 100644
index 00000000..395889cd
--- /dev/null
+++ b/m4/header_major_fixed.m4
@@ -0,0 +1,27 @@
+AC_DEFUN([AC_HEADER_MAJOR_FIXED],
+[AC_CACHE_CHECK(whether sys/types.h defines makedev,
+ ac_cv_header_sys_types_h_makedev,
+[AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include <sys/types.h>]],
+ [[return makedev(0, 0);]])],
+ [if grep 'historical compatibility' conftest.err >/dev/null; then
+ ac_cv_header_sys_types_h_makedev=no
+ else
+ ac_cv_header_sys_types_h_makedev=yes
+ fi],
+ [ac_cv_header_sys_types_h_makedev=no])
+])
+
+if test $ac_cv_header_sys_types_h_makedev = no; then
+AC_CHECK_HEADER(sys/mkdev.h,
+ [AC_DEFINE(MAJOR_IN_MKDEV, 1,
+ [Define to 1 if `major', `minor', and `makedev' are
+ declared in <mkdev.h>.])])
+
+ if test $ac_cv_header_sys_mkdev_h = no; then
+ AC_CHECK_HEADER(sys/sysmacros.h,
+ [AC_DEFINE(MAJOR_IN_SYSMACROS, 1,
+ [Define to 1 if `major', `minor', and `makedev'
+ are declared in <sysmacros.h>.])])
+ fi
+fi
+])
diff --git a/prepare-source.mak b/prepare-source.mak
index ad291feb..bc1938de 100644
--- a/prepare-source.mak
+++ b/prepare-source.mak
@@ -1,6 +1,6 @@
conf: configure.sh config.h.in
-aclocal.m4:
+aclocal.m4: m4/*.m4
aclocal -I m4
configure.sh: configure.ac aclocal.m4
--
The rsync repository.
More information about the rsync-cvs
mailing list