From 7023d104fefdca131fb00590306528fe26c2874b Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sat, 29 Oct 2016 11:23:45 +0300 Subject: Only compile test_dir_rewind.c on amd64. This should fix the build on e.g. ARM. --- tests/test_dir_rewind.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/test_dir_rewind.c') diff --git a/tests/test_dir_rewind.c b/tests/test_dir_rewind.c index d4050f9..6ae0497 100644 --- a/tests/test_dir_rewind.c +++ b/tests/test_dir_rewind.c @@ -3,7 +3,7 @@ // // https://github.com/mpartel/bindfs/issues/41 -#ifdef __linux__ +#if __linux__ && __x86_64__ #define _GNU_SOURCE #include @@ -68,13 +68,15 @@ int main() return 0; } -#else // #ifdef __linux__ +#else + +#include int main() { - printf("This test (probably) only compiles on Linux.\n"); + printf("This test currently only compiles on Linux/amd64.\n"); printf("Skipping by just returning successfully.\n"); return 0; } -#endif // #ifdef __linux__ +#endif -- cgit v1.2.3