aioring: check for arch support AFTER including the headers
authorJens Axboe <axboe@kernel.dk>
Thu, 13 Dec 2018 03:31:52 +0000 (20:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Dec 2018 03:31:52 +0000 (20:31 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/aioring.c

index 5a9add7..e434387 100644 (file)
@@ -1,4 +1,3 @@
-#ifdef ARCH_HAVE_AIORING
 /*
  * aioring engine
  *
@@ -17,6 +16,8 @@
 #include "../optgroup.h"
 #include "../lib/memalign.h"
 
+#ifdef ARCH_HAVE_AIORING
+
 #ifndef IOCB_FLAG_HIPRI
 #define IOCB_FLAG_HIPRI        (1 << 2)
 #endif