summaryrefslogtreecommitdiffstats
path: root/cad/magic
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-05-24 02:18:54 +0000
committersteve <steve@FreeBSD.org>1999-05-24 02:18:54 +0000
commitf2bc6f89936595e8f5f2c6db518e3f0f1648e26e (patch)
tree852ed65ebdfab5bedc227fae84515b27ac79d44b /cad/magic
parent511aa2a129fec26f18413a87277eb16512285299 (diff)
downloadFreeBSD-ports-f2bc6f89936595e8f5f2c6db518e3f0f1648e26e.zip
FreeBSD-ports-f2bc6f89936595e8f5f2c6db518e3f0f1648e26e.tar.gz
Fix build for Alpha boxes.
Diffstat (limited to 'cad/magic')
-rw-r--r--cad/magic/files/patch-ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/cad/magic/files/patch-ac b/cad/magic/files/patch-ac
new file mode 100644
index 0000000..9ad58fb
--- /dev/null
+++ b/cad/magic/files/patch-ac
@@ -0,0 +1,20 @@
+--- misc/magic.h.orig Wed Sep 11 15:23:25 1996
++++ misc/magic.h Sun Apr 25 22:32:12 1999
+@@ -166,7 +166,7 @@
+ *
+ */
+
+-#ifdef i386
++#if defined(i386) || (defined(__alpha__) && defined(__FreeBSD__))
+ #define IS_LITTLE_ENDIAN /* Intel x86 processors. */
+ #endif
+
+@@ -244,7 +244,7 @@
+ #if defined(sun) && !defined(sparc)
+ # define NEED_MONCNTL
+ #endif
+-#ifdef ALPHA
++#if defined(ALPHA) || (defined(__alpha__) && defined(__FreeBSD__))
+ # define NEED_MONCNTL
+ #endif
+
OpenPOWER on IntegriCloud