Merge pull request #1761 from kraj/riscv

riscv doesn't require pointers to be aligned
This commit is contained in:
matt335672 2020-12-23 09:40:39 +00:00 committed by GitHub
commit 83b256294f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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>