1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/comms/libfec/files/patch-fec.h
Diane Bruce de90917e70 Add back libfec
Remove support for obsolete FreeBSD versions
Reassign maintainer to hamradio@
Cleanups to make sure it compiles cleanly on clang and gcc
Cleanup to (hopefully) allow building on non x86 architectures (untested)
2016-04-25 19:45:33 +00:00

12 lines
409 B
C

--- fec.h.orig 2006-10-13 01:10:53 UTC
+++ fec.h
@@ -262,7 +262,7 @@ extern enum cpu_mode {UNKNOWN=0,PORT,MMX
void find_cpu_mode(void); /* Call this once at startup to set Cpu_mode */
/* Determine parity of argument: 1 = odd, 0 = even */
-#ifdef __i386__
+#ifdef notyet__i386__
static inline int parityb(unsigned char x){
__asm__ __volatile__ ("test %1,%1;setpo %0" : "=g"(x) : "r" (x));
return x;