--- Mesa-9.1.6.org/src/mesa/main/querymatrix.c	2013-08-04 18:12:47.046000003 +0000
+++ Mesa-9.1.6/src/mesa/main/querymatrix.c	2013-08-04 18:23:35.360000003 +0000
@@ -71,7 +71,7 @@
     }
 }
 
-#elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \
+#elif defined(fpclassify) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \
      defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \
      (defined(__sun) && defined(__C99FEATURES__)) || defined(__MINGW32__) || \
      (defined(__sun) && defined(__GNUC__)) || defined(ANDROID) || defined(__HAIKU__)
