3a923aa62d
This patch implements sys/user.h file that works for both x86_64 as well as aarch64. This include file is used by sys/procfs.h which is needed dependency for binutils. There is bug in this patch in aarch64 implementation which is the lack of f128 implementation in rust, thus we can't create cbinding for long double.
11 lines
283 B
C
11 lines
283 B
C
#ifndef _SYS_USER_H
|
|
#define _SYS_USER_H
|
|
#if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) || defined(_M_AMD64)
|
|
#include <arch/x64/user.h>
|
|
#elif defined(__aarch64__)
|
|
#include <arch/aarch64/user.h>
|
|
#else
|
|
#error "Unknown architecture"
|
|
#endif
|
|
|
|
#endif |