1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/comms/libfec/files/patch-fec.h
Diane Bruce f533c30faf Fix build under -CURRENT by making it build with gcc 4.2. [1] The
introduced patch fixes a bad macro in the source code.

Notified by:	Pav (via pointyhat) [1]
Approved:	ehaupt (mentor)
2007-07-05 16:17:06 +00:00

12 lines
416 B
C

--- fec.h.orig 2007-07-02 13:26:12.000000000 -0400
+++ fec.h 2007-07-02 13:38:26.000000000 -0400
@@ -262,7 +262,7 @@
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;