freebsd-ports/net/libtnl/files/patch-platforms
Mikhail Teterin dfaad2246c Add patches to unbreak -- work with gcc above version 3. Also allow
building on amd64 and note, that support for other platforms is easy
too, as long as one has a system to test on.

Redirect a few functions directly to the standard implementations using
defines, instead of using function-wrappers.

This port ought to use a port-installed libtomcrypt instead of building its
own version of same. Unfortunately, our security/libtomcrypt does not
(yet?) install a shared version.
2008-08-18 01:48:41 +00:00

23 lines
699 B
Text

This allows building on amd64 and with gcc above 3.x. Adding support for
other architectures is easy too.
-mi
--- tnlTypes.h 2004-09-28 14:45:25.000000000 -0400
+++ tnlTypes.h 2008-08-17 10:30:26.000000000 -0400
@@ -285,6 +285,6 @@
//----------------------------------------------------------------------------------
-#if defined(_M_IX86) || defined(i386)
-# define TNL_CPU_STRING "Intel x86"
+#if defined(_M_IX86) || defined(i386) || defined(__amd64__)
+# define TNL_CPU_STRING "x86"
# define TNL_CPU_X86
# define TNL_LITTLE_ENDIAN
@@ -294,5 +294,5 @@
# if __GNUC__ == 2
# define TNL_GCC_2
-# elif __GNUC__ == 3
+# elif __GNUC__ >= 3
# define TNL_GCC_3
# else