diff options
author | marcus <marcus@FreeBSD.org> | 2003-08-04 03:59:23 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-08-04 03:59:23 +0800 |
commit | 1a78756959d2bb3872d78916099446bf49f2afe7 (patch) | |
tree | f2430acdb64f3b5e7efa472e7c22aeba26e4f572 | |
parent | 2d38d2af35967a6f00e357295bedc3edc6e4fb7d (diff) | |
download | freebsd-ports-gnome-1a78756959d2bb3872d78916099446bf49f2afe7.tar.gz freebsd-ports-gnome-1a78756959d2bb3872d78916099446bf49f2afe7.tar.zst freebsd-ports-gnome-1a78756959d2bb3872d78916099446bf49f2afe7.zip |
Check for va_copy(), and use it if found. This should help out 64-bit
systems.
PR: 55214
Submitted by: maintainer
-rw-r--r-- | net/samba-libsmbclient/Makefile | 1 | ||||
-rw-r--r-- | net/samba-libsmbclient/files/patch-configure | 26 | ||||
-rw-r--r-- | net/samba-libsmbclient/files/patch-include_includes.h | 19 |
3 files changed, 46 insertions, 0 deletions
diff --git a/net/samba-libsmbclient/Makefile b/net/samba-libsmbclient/Makefile index ae3d420c5b53..38c97bf15652 100644 --- a/net/samba-libsmbclient/Makefile +++ b/net/samba-libsmbclient/Makefile @@ -7,6 +7,7 @@ PORTNAME= samba PORTVERSION= 3.0.0.b3 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://us4.samba.org/samba/ftp/%SUBDIR%/ MASTER_SITE_SUBDIR= beta alpha old diff --git a/net/samba-libsmbclient/files/patch-configure b/net/samba-libsmbclient/files/patch-configure new file mode 100644 index 000000000000..cd8f4afb43fe --- /dev/null +++ b/net/samba-libsmbclient/files/patch-configure @@ -0,0 +1,26 @@ +--- configure.in.orig Wed Jul 16 22:45:47 2003 ++++ configure.in Sun Aug 3 12:49:35 2003 +@@ -1310,12 +1310,20 @@ + AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available]) + fi + +-AC_CACHE_CHECK([for __va_copy],samba_cv_HAVE_VA_COPY,[ ++AC_CACHE_CHECK([for va_copy],samba_cv_HAVE_VA_COPY,[ + AC_TRY_LINK([#include <stdarg.h> +-va_list ap1,ap2;], [__va_copy(ap1,ap2);], ++va_list ap1,ap2;], [va_copy(ap1,ap2);], + samba_cv_HAVE_VA_COPY=yes,samba_cv_HAVE_VA_COPY=no)]) + if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then +- AC_DEFINE(HAVE_VA_COPY,1,[Whether __va_copy() is available]) ++ AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available]) ++fi ++ ++AC_CACHE_CHECK([for __va_copy],samba_cv_HAVE__VA_COPY,[ ++AC_TRY_LINK([#include <stdarg.h> ++va_list ap1,ap2;], [__va_copy(ap1,ap2);], ++samba_cv_HAVE__VA_COPY=yes,samba_cv_HAVE__VA_COPY=no)]) ++if test x"$samba_cv_HAVE__VA_COPY" = x"yes"; then ++ AC_DEFINE(HAVE__VA_COPY,1,[Whether __va_copy() is available]) + fi + + AC_CACHE_CHECK([for C99 vsnprintf],samba_cv_HAVE_C99_VSNPRINTF,[ diff --git a/net/samba-libsmbclient/files/patch-include_includes.h b/net/samba-libsmbclient/files/patch-include_includes.h new file mode 100644 index 000000000000..c50317978d45 --- /dev/null +++ b/net/samba-libsmbclient/files/patch-include_includes.h @@ -0,0 +1,19 @@ +--- include/includes.h.orig Tue Jul 1 22:44:25 2003 ++++ include/includes.h Sun Aug 3 12:05:23 2003 +@@ -1248,10 +1248,14 @@ + + + /* we need to use __va_copy() on some platforms */ +-#ifdef HAVE_VA_COPY ++#ifdef HAVE__VA_COPY + #define VA_COPY(dest, src) __va_copy(dest, src) + #else ++#ifdef HAVE_VA_COPY ++#define VA_COPY(dest, src) va_copy(dest, src) ++#else + #define VA_COPY(dest, src) (dest) = (src) ++#endif + #endif + + #ifndef HAVE_TIMEGM + |