mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
Check for va_copy(), and use it if found. This should help out 64-bit
systems. PR: 55214 Submitted by: maintainer
This commit is contained in:
parent
4fa5508c8d
commit
3ed7aec631
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86237
@ -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
|
||||
|
26
net/samba-libsmbclient/files/patch-configure
Normal file
26
net/samba-libsmbclient/files/patch-configure
Normal file
@ -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,[
|
19
net/samba-libsmbclient/files/patch-include_includes.h
Normal file
19
net/samba-libsmbclient/files/patch-include_includes.h
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user