diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index e1a81a3fea077d59d6476b7317b45eec99f5b6ee..88fe5e0d4145d9c35be52f70031f4dbd8ab9b902 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -4150,7 +4150,7 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx)
     if (ENABLE_MMX)      dsputil_init_mmx   (c, avctx);
     if (ENABLE_ARMV4L)   dsputil_init_armv4l(c, avctx);
     if (ENABLE_MLIB)     dsputil_init_mlib  (c, avctx);
-    if (ENABLE_SPARC)    dsputil_init_vis   (c, avctx);
+    if (ENABLE_VIS)      dsputil_init_vis   (c, avctx);
     if (ENABLE_ALPHA)    dsputil_init_alpha (c, avctx);
     if (ENABLE_POWERPC)  dsputil_init_ppc   (c, avctx);
     if (ENABLE_MMI)      dsputil_init_mmi   (c, avctx);
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index ca19927b2f1a98278c08014a84812664814984e8..3d57f9bdf20880137d88268b92d92fac2a296406 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -538,7 +538,7 @@ extern int mm_flags;
 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v)
 #define STRIDE_ALIGN 8
 
-#elif defined(ARCH_SPARC)
+#elif defined(HAVE_VIS)
 
 /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */
 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v)