rpms/kdenetwork/FC-3 kdenetwork-3.4.1-kopete-libgadu-va_copy.patch, NONE, 1.1
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Thu Jul 21 20:10:55 UTC 2005
Author: than
Update of /cvs/dist/rpms/kdenetwork/FC-3
In directory cvs.devel.redhat.com:/tmp/cvs-serv10411
Added Files:
kdenetwork-3.4.1-kopete-libgadu-va_copy.patch
Log Message:
fix kopete crash on x86_64
kdenetwork-3.4.1-kopete-libgadu-va_copy.patch:
configure.in.in | 44 ++++++++++++++++++++++++++++++++++++++++----
1 files changed, 40 insertions(+), 4 deletions(-)
--- NEW FILE kdenetwork-3.4.1-kopete-libgadu-va_copy.patch ---
--- kdenetwork-3.4.1.o/kopete/protocols/configure.in.in.tn 2005-07-21 19:08:18.000000000 +0200
+++ kdenetwork-3.4.1.o/kopete/protocols/configure.in.in 2005-07-21 19:18:41.000000000 +0200
@@ -113,10 +113,46 @@
], [
AC_MSG_RESULT([no])
])
- AC_CHECK_FUNCS([va_copy],
- [AC_LIBGADU_DEFINE([HAVE_VA_COPY])],[])
- AC_CHECK_FUNCS([_va_copy],
- [AC_LIBGADU_DEFINE([HAVE__VA_COPY])],[])
+ AC_MSG_CHECKING([for an implementation of va_copy()])
+ AC_TRY_RUN([
+ #include <stdarg.h>
+ void f (int i, ...) {
+ va_list args1, args2;
+ va_start (args1, i);
+ va_copy (args2, args1);
+ if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
+ exit (1);
+ va_end (args1); va_end (args2);
+ }
+ int main() {
+ f (0, 42);
+ return 0;
+ }],[
+ AC_MSG_RESULT([yes])
+ AC_LIBGADU_DEFINE([HAVE_VA_COPY])
+ ], [
+ AC_MSG_RESULT([no])
+ ])
+ AC_MSG_CHECKING([for an implementation of __va_copy()])
+ AC_TRY_RUN([
+ #include <stdarg.h>
+ void f (int i, ...) {
+ va_list args1, args2;
+ va_start (args1, i);
+ __va_copy (args2, args1);
+ if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
+ exit (1);
+ va_end (args1); va_end (args2);
+ }
+ int main() {
+ f (0, 42);
+ return 0;
+ }],[
+ AC_MSG_RESULT([yes])
+ AC_LIBGADU_DEFINE([HAVE___VA_COPY])
+ ], [
+ AC_MSG_RESULT([no])
+ ])
fi
More information about the fedora-cvs-commits
mailing list