mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-11 23:43:21 +00:00
Disable type punning on ARM by ifdef.
This commit is contained in:
parent
708aac1ea7
commit
b69afa010e
@ -60,6 +60,13 @@
|
|||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Disable type punning on ARM architecture -- some ARM chips throw SIGBUS on unaligned access
|
||||||
|
#if defined(__arm__) || defined(__ARMEL__)
|
||||||
|
#ifndef ZT_NO_TYPE_PUNNING
|
||||||
|
#define ZT_NO_TYPE_PUNNING
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||||
#ifndef __UNIX_LIKE__
|
#ifndef __UNIX_LIKE__
|
||||||
#define __UNIX_LIKE__
|
#define __UNIX_LIKE__
|
||||||
|
Loading…
Reference in New Issue
Block a user