diff --git a/libavutil/intreadwrite.h b/libavutil/intreadwrite.h
index c8026f0872065fed0c2e6c1177f80b8410da9c22..9315cddd85a62c55d8fe2712a447b45c447ae372 100644
--- a/libavutil/intreadwrite.h
+++ b/libavutil/intreadwrite.h
@@ -21,8 +21,8 @@
 
 #include <stdint.h>
 #include "config.h"
+#include "attributes.h"
 #include "bswap.h"
-#include "common.h"
 
 typedef union {
     uint64_t u64;