search for: rsync_cv_have_c99_vsnprintf

Displaying 2 results from an estimated 2 matches for "rsync_cv_have_c99_vsnprintf".

2019 Sep 09
0
[PATCH] autoconf tweaks for C99 compilers
..._cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])]) if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday() takes a time-zone arg]) fi @@ -849,6 +856,9 @@ AC_CACHE_CHECK([for C99 vsnprintf],rsync_cv_HAVE_C99_VSNPRINTF,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <sys/types.h> #include <stdarg.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> void foo(const char *format, ...) { va_list ap; int len; @@ -863,7 +873,7 @@ void foo(const char *format, ......
2010 Feb 12
1
[RFC] add support for fallocate()
...FL_KEEP_SIZE, 0, 10));], +rsync_cv_HAVE_FALLOCATE=yes,rsync_cv_HAVE_FALLOCATE=no)]) +if test x"$rsync_cv_HAVE_FALLOCATE" != x"no"; then + AC_DEFINE(HAVE_FALLOCATE, 1, [Define to 1 if fallocate() and FALLOC_FL_KEEP_SIZE are available]) +fi + AC_CACHE_CHECK([for C99 vsnprintf],rsync_cv_HAVE_C99_VSNPRINTF,[ AC_TRY_RUN([ #include <sys/types.h> diff --git a/receiver.c b/receiver.c index 6688dda..0fa8782 100644 --- a/receiver.c +++ b/receiver.c @@ -774,7 +774,14 @@ int recv_files(int f_in, int f_out, char *local_name) send_msg_int(MSG_NO_SEND, ndx); continue; } - +#ifdef HAVE_FALLOC...