]> git.proxmox.com Git - qemu.git/blobdiff - host-utils.h
xen_disk: use bdrv_aio_flush instead of bdrv_flush
[qemu.git] / host-utils.h
index e335c5cb68e1fc3923ef725f75cc1c9d223b7b87..821db93671778513a426f8fdca961585a2e6614f 100644 (file)
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 
-#include "osdep.h"
+#include "compiler.h"   /* QEMU_GNUC_PREREQ */
 
 #if defined(__x86_64__)
 #define __HAVE_FAST_MULU64__
@@ -164,7 +164,7 @@ static inline int ctz64(uint64_t val)
 {
 #if QEMU_GNUC_PREREQ(3, 4)
     if (val)
-        return __builtin_ctz(val);
+        return __builtin_ctzll(val);
     else
         return 64;
 #else