diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index eeb84a0fcf7cdea405c0fd6a1b8e0d438f8885dd..2a4a7d3d4f741e6b7cf018e76ce027c77a68964f 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -430,6 +430,10 @@ typedef struct SnowContext{
     MpegEncContext m; // needed for motion estimation, should not be used for anything else, the idea is to make the motion estimation eventually independant of MpegEncContext, so this will be removed then (FIXME/XXX)
 }SnowContext;
 
+#ifdef	__sgi
+// Avoid a name clash on SGI IRIX
+#undef	qexp
+#endif
 #define QEXPSHIFT (7-FRAC_BITS+8) //FIXME try to change this to 0
 static const uint8_t qexp[8]={
     128, 140, 152, 166, 181, 197, 215, 235