aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2016-10-29 11:23:45 +0300
committerMartin Pärtel <martin.partel@gmail.com>2016-10-29 11:23:45 +0300
commit7023d104fefdca131fb00590306528fe26c2874b (patch)
tree4113aea543cd11cae6112021284c312236c01a91
parentf2f6f03a68a9ffb2cdcf9575de4d61277ee04b55 (diff)
downloadbindfs-7023d104fefdca131fb00590306528fe26c2874b.tar.gz
Only compile test_dir_rewind.c on amd64.
This should fix the build on e.g. ARM.
-rw-r--r--tests/test_dir_rewind.c10
1 files changed, 6 insertions, 4 deletions
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 <fcntl.h>
@@ -68,13 +68,15 @@ int main()
return 0;
}
-#else // #ifdef __linux__
+#else
+
+#include <stdio.h>
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