mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-06 00:31:13 +01:00
Fix Fedora33 s390x build.
This commit is contained in:
parent
54c7f7969b
commit
72c8cc3912
@ -1212,6 +1212,11 @@ AC_DEFUN([LIBZMQ_CHECK_CACHELINE], [{
|
|||||||
# the value the kernel knows on Linux
|
# the value the kernel knows on Linux
|
||||||
zmq_cacheline_size=$(cat /sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size 2>/dev/null || echo 64)
|
zmq_cacheline_size=$(cat /sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size 2>/dev/null || echo 64)
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
if test "x$zmq_cacheline_size" = "xundefined"; then
|
||||||
|
# On some platforms e.g. Fedora33 s390x the cacheline size reported
|
||||||
|
# by getconf as 'undefined'.
|
||||||
|
zmq_cacheline_size=64
|
||||||
fi
|
fi
|
||||||
AC_MSG_NOTICE([Using "$zmq_cacheline_size" bytes alignment for lock-free data structures])
|
AC_MSG_NOTICE([Using "$zmq_cacheline_size" bytes alignment for lock-free data structures])
|
||||||
AC_DEFINE_UNQUOTED(ZMQ_CACHELINE_SIZE, $zmq_cacheline_size, [Using "$zmq_cacheline_size" bytes alignment for lock-free data structures])
|
AC_DEFINE_UNQUOTED(ZMQ_CACHELINE_SIZE, $zmq_cacheline_size, [Using "$zmq_cacheline_size" bytes alignment for lock-free data structures])
|
||||||
|
Loading…
Reference in New Issue
Block a user