apache
[Top] [All Lists]

10xpatch & FreeBSD

To: apache@xxxxxxxxxxx
Subject: 10xpatch & FreeBSD
From: Alexander Leidinger <Alexander@xxxxxxxxxxxxx>
Date: Wed, 17 May 2000 18:25:41 +0200 (CEST)
Sender: owner-apache@xxxxxxxxxxx
Hi,

I tried again to use 10xpatch-1.3.12-[0-2] with the FreeBSD port (as
described in my last mail). I had to add "|| defined(__i386__)" into the
conditional in src/main/qsc.c at line 185 (the conditional just before
the qsc_cas function):

--- qsc.c.org   Wed May 17 17:46:43 2000
+++ qsc.c       Wed May 17 17:47:40 2000
@@ -182,8 +182,8 @@
 #  define qsc_cas(p, oldval, newval)   __compare_and_swap(p, oldval, newval)
 # endif
 #elif defined(__GNUC__) && __GNUC__ >= 2 && \
-    (defined(__i486__) || defined(__i586__) || defined(__i686__) || \
-    defined(__pentium__) || defined(__pentiumpro__))
+    (defined(__i386__) || defined(__i486__) || defined(__i586__) || \
+    defined(__i686__) || defined(__pentium__) || defined(__pentiumpro__))
 /*
  * Use asm statement copied from Linux libpthread's __compare_and_swap().
  */

To enable the QSC, add "-DUSE_QSC" to the CFLAGS line in the generated
Makefile.inc in the ports directory.

Bye,
Alexander.

-- 
            0 and 1. Now what could be so hard about that?

http://www.Leidinger.net                  Alexander+Home @ Leidinger.net
  GPG fingerprint = 7423 F3E6 3A7E B334 A9CC  B10A 1F5F 130A A638 6E7E


<Prev in Thread] Current Thread [Next in Thread>