Hi Daniel, On Sun, Nov 05, 2017 at 02:58:23PM +0100, Daniel Heitepriem wrote: > Hi guys, > > I can confirm that the patch is working. With the following loop I replaced > the string "SPIN_LOCK" with "HA_SPIN_LOCK" in every file where it occured (I > hope I got every file) and now compilation is working fine (gnu sed is > required): > > for file in include/common/buffer.h include/common/hathreads.h > include/common/memory.h include/proto/applet.h > include/proto/channel.h include/proto/checks.h include/proto/fd.h > include/proto/stick_table.h include/proto/stream.h > include/proto/task.h src/applet.c src/checks.c src/compression.c > src/dns.c src/ev_epoll.c src/ev_kqueue.c src/ev_poll.c > src/ev_select.c src/fd.c src/flt_spoe.c src/hathreads.c > src/hlua_fcn.c src/hlua.c src/lb_chash.c src/lb_fas.c src/lb_fwlc.c > src/lb_fwrr.c src/lb_map.c src/listener.c src/map.c src/memory.c > src/mux_h2.c src/pattern.c src/peers.c src/proto_http.c src/queue.c > src/server.c src/stats.c src/stick_table.c src/stream.c src/task.c; > do gsed -i 's/SPIN_LOCK/HA_SPIN_LOCK/g' $file; done
Thanks, that's very useful. We'll have to do this and we'll then also enable threads by default on Solaris. Many thanks for your report! Willy

