[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] [PATCH] gnutls fails to compile on PPC
From: |
Marco d'Itri |
Subject: |
[gnutls-dev] [PATCH] gnutls fails to compile on PPC |
Date: |
Mon Nov 5 13:56:01 2001 |
User-agent: |
Mutt/1.3.23i |
0.2.9:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -c gnutls_priority.c -fPIC -DPIC -o
.libs/gnutls_priority.lo
gnutls_priority.c: In function `gnutls_set_cipher_priority':
gnutls_priority.c:47: incompatible types in assignment
gnutls_priority.c: In function `gnutls_set_kx_priority':
gnutls_priority.c:89: incompatible types in assignment
gnutls_priority.c: In function `gnutls_set_mac_priority':
gnutls_priority.c:130: incompatible types in assignment
gnutls_priority.c: In function `gnutls_set_compression_priority':
gnutls_priority.c:169: incompatible types in assignment
gnutls_priority.c: In function `gnutls_set_protocol_priority':
gnutls_priority.c:208: incompatible types in assignment
Fix:
int gnutls_set_cipher_priority( GNUTLS_STATE state, LIST) {
va_list ap;
int i,num=0;
va_list _ap;
va_start( ap, state);
+ifdef __va_copy
+ __va_copy( _ap, ap);
+#else
_ap = ap;
+#endif
For details please read:
http://www.gnu.org/manual/glibc-2.2.3/html_chapter/libc_34.html
http://www.davros.org/c/wg14n671.txt
http://lists.debian.org/debian-powerpc/2000/debian-powerpc-200009/msg00414.html
--
ciao,
Marco
- [gnutls-dev] [PATCH] gnutls fails to compile on PPC,
Marco d'Itri <=