From f84d2aebd4d295f08c50b88ed4452f6c9b6605e6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 2 Jun 2020 04:20:21 +0200 Subject: Reject i386 and x32 applications (not yet supported) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index 458d4f9..0c9ff8f 100644 --- a/common.h +++ b/common.h @@ -1,9 +1,7 @@ /* See LICENSE file for copyright and license details. */ -#if !defined __x86_64__ || defined __IPL32__ -# error "This program is only implemented for x86-64" -#endif - +#include #include +#include /* After */ #include #include #include @@ -19,6 +17,16 @@ #include #include +#if defined(__x86_64__) && !defined(__IPL32__) +# include "arch-x86-64.h" +#else +# error "This program is only implemented for x86-64" +#endif + +#if !defined(__linux__) +# error "This program is only implemented for Linux" +#endif + #include "arg.h" #include "list-errnos.h" #include "list-signums.h" -- cgit v1.2.3-70-g09d2