Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Linux non-x86/x86_64 compilation failure #51

Merged
merged 1 commit into from
Nov 1, 2017

Conversation

n8sh
Copy link
Member

@n8sh n8sh commented Nov 1, 2017

@9il
Copy link
Member

9il commented Nov 1, 2017

Linux kernel headers define __NR_getrandom (and other syscall numbers). I have created an empty https://github.com/libmir/mir-linux-kernel for linux headers.

https://github.com/torvalds/linux can be used as reference.
We need an arch/<arch-name->/include/uapi/asm/unistd.h files and few small others that are imported by some archs.

D file name structure can looks like mir/linux/arch/<arch-name->/uapi/asm/unistd.d plus unified file mir/linux/asm/unistd.d that predifined arch version from predefined-versions . D does not support all architectures, but many of them are supported by LDC and D specification, see predefined-versions for details.

@9il
Copy link
Member

9il commented Nov 1, 2017

If you do not have a time we can merge this for now.

@9il
Copy link
Member

9il commented Nov 1, 2017

btw, ping @wilzbach

@n8sh
Copy link
Member Author

n8sh commented Nov 1, 2017

If you do not have a time we can merge this for now.

I think adding the syscall numbers for the other architectures is the right thing to do, but I think for now we should unbreak the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants