On Thu, 5 Feb 2015 15:51:27 +0000 Dejan Latinovic
<[email protected]> wrote:
>
>
>
> Hello,
>
> Yes, we could use __sync_synchronize() an non x86 archs.
>
> It is also needed to define rte_pause.
>
> The patch that solves this issue for me is attached.
>
> I had tested it on mips, mipsel and amd64.
>
>
>
> Could you please consider including this patch.

another snap may also needed for kFreeBSD support.

--- masscan-1.0.3-90-g2441f18~ds0.orig/src/pixie-threads.c
2014-10-15 21:05:50.000000000 +0800
+++ masscan-1.0.3-90-g2441f18~ds0/src/pixie-threads.c   2015-03-04
01:01:07.717862461 +0800
@@ -180,7 +180,7 @@
 #if defined(WIN32)
     UNUSEDPARM(flags);
     return _beginthread(worker_thread, 0, worker_data);
-#elif defined(__linux__) || defined(__APPLE__) ||
defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__linux__) || defined(__APPLE__) ||
defined(__FreeBSD__) || defined(__kFreeBSD__) || defined(__OpenBSD__)

     typedef void *(*PTHREADFUNC)(void*);
     pthread_t thread_id;


>
>
> Regards,
> Dejan


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to