Merge pull request #1761 from kraj/riscv
riscv doesn't require pointers to be aligned
This commit is contained in:
commit
83b256294f
@ -84,7 +84,8 @@ typedef int bool_t;
|
||||
#define NEED_ALIGN
|
||||
#elif defined(__x86__) || defined(__x86_64__) || \
|
||||
defined(__AMD64__) || defined(_M_IX86) || defined (_M_AMD64) || \
|
||||
defined(__i386__) || defined(__aarch64__)
|
||||
defined(__i386__) || defined(__aarch64__) || \
|
||||
defined(__riscv)
|
||||
#define NO_NEED_ALIGN
|
||||
#else
|
||||
#warning unknown arch
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/errno.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user