]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - include/bitops.h
build: Add fls check into autoconf
[thirdparty/xfsprogs-dev.git] / include / bitops.h
index 930f64a3258abb18dee27aecf786beaca89f57fa..44599a7843983f2ec49e78a207a95e465347bd36 100644 (file)
@@ -5,6 +5,7 @@
  * fls: find last bit set.
  */
 
+#ifndef HAVE_FLS
 static inline int fls(int x)
 {
        int r = 32;
@@ -32,6 +33,7 @@ static inline int fls(int x)
        }
        return r;
 }
+#endif /* HAVE_FLS */
 
 static inline int fls64(__u64 x)
 {