diff --git a/coders/jp2.c b/coders/jp2.c
index 9a47ccc..a637ea1 100644
--- a/coders/jp2.c
+++ b/coders/jp2.c
@@ -40,6 +40,7 @@
   Include declarations.
 */
 #include "magick/studio.h"
+#include "magick/attribute.h"
 #include "magick/blob.h"
 #include "magick/blob-private.h"
 #include "magick/cache.h"