diff --git a/libpixelflinger/codeflinger/texturing.cpp b/libpixelflinger/codeflinger/texturing.cpp
index ba13fb3035a4985fb44c155103bda3c1afd52081..6baa28ed9ce70de8076dbc1dacb0fa5f76b3d2d6 100644
--- a/libpixelflinger/codeflinger/texturing.cpp
+++ b/libpixelflinger/codeflinger/texturing.cpp
@@ -25,7 +25,9 @@
 
 #include "codeflinger/GGLAssembler.h"
 
+#ifdef __arm__
 #include <machine/cpu-features.h>
+#endif
 
 namespace android {