A_ITALIC was only added to curses in 2013.

Index: color/command.c
--- color/command.c.orig
+++ color/command.c
@@ -446,8 +446,10 @@ static enum CommandResult parse_attr_spec(struct Buffe
 
   if (mutt_istr_equal("bold", buf->data))
     *attrs |= A_BOLD;
+#ifdef A_ITALIC
   else if (mutt_istr_equal("italic", buf->data))
     *attrs |= A_ITALIC;
+#endif
   else if (mutt_istr_equal("none", buf->data))
     *attrs = A_NORMAL; // Use '=' to clear other bits
   else if (mutt_istr_equal("normal", buf->data))
@@ -491,11 +493,13 @@ static enum CommandResult parse_color_pair(struct Buff
       *attrs |= A_BOLD;
       color_debug(LL_DEBUG5, "bold\n");
     }
+#ifdef A_ITALIC
     else if (mutt_istr_equal("italic", buf->data))
     {
       *attrs |= A_ITALIC;
       color_debug(LL_DEBUG5, "italic\n");
     }
+#endif
     else if (mutt_istr_equal("none", buf->data))
     {
       *attrs = A_NORMAL; // Use '=' to clear other bits
