diff --git a/sys/dev/amr/amr_compat.h b/sys/dev/amr/amr_compat.h index c85b309b50ee..50ea8047c630 100644 --- a/sys/dev/amr/amr_compat.h +++ b/sys/dev/amr/amr_compat.h @@ -53,7 +53,7 @@ # define bio_resid b_resid # define BIO_ERROR B_ERROR # define devstat_end_transaction_bio(x, y) devstat_end_transaction_buf(x, y) -# define BIO_IS_READ(x) ((x)-b_flags & B_READ) +# define BIO_IS_READ(x) ((x)->b_flags & B_READ) #else # include