mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
Fix build on alpha
This commit is contained in:
parent
3d118c768d
commit
88f03b241d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82590
@ -43,6 +43,8 @@ post-patch:
|
||||
-e 's|\(Extension(.*\)$$|\1 define_macros=[("ffi_type_schar", \
|
||||
"ffi_type_sint8"), ("ffi_type_sshort","ffi_type_sint16")],|' \
|
||||
${WRKSRC}/setup.py
|
||||
${REINPLACE_CMD} -e 's,\(alpha\*-.*-osf.*\)),\1 | alpha*-*-freebsd*),' \
|
||||
${LIBFFIWRKSRC}/configure
|
||||
.if ${ARCH} == "ia64"
|
||||
${LN} -sf ${LIBFFIWRKSRC}/${ARCH}/${ARCH}_flags.h ${LIBFFIWRKSRC}/
|
||||
${REINPLACE_CMD} -e 's|defined(IA64)|defined(__ia64__)|' \
|
||||
|
16
devel/py-ctypes/files/patch-source_callproc.c
Normal file
16
devel/py-ctypes/files/patch-source_callproc.c
Normal file
@ -0,0 +1,16 @@
|
||||
--- source/callproc.c.orig Mon Jun 9 13:22:12 2003
|
||||
+++ source/callproc.c Mon Jun 9 13:22:58 2003
|
||||
@@ -505,6 +505,13 @@
|
||||
#undef ffi_type_slong
|
||||
#define ffi_type_slong ffi_type_sint32
|
||||
#define ffi_type_slonglong ffi_type_sint64
|
||||
+#elif (SIZEOF_LONG_LONG == 8 && SIZEOF_LONG == 8)
|
||||
+#undef ffi_type_ulong
|
||||
+#define ffi_type_ulong ffi_type_uint64
|
||||
+#define ffi_type_ulonglong ffi_type_uint64
|
||||
+#undef ffi_type_slong
|
||||
+#define ffi_type_slong ffi_type_sint64
|
||||
+#define ffi_type_slonglong ffi_type_sint64
|
||||
#endif
|
||||
|
||||
atypes = (ffi_type **)alloca(argcount * sizeof(ffi_type *));
|
Loading…
Reference in New Issue
Block a user