]> git.proxmox.com Git - mirror_qemu.git/blobdiff - os-posix.c
Merge remote-tracking branch 'remotes/cminyard/tags/for-qemu-i2c-5' into staging
[mirror_qemu.git] / os-posix.c
index 3cd52e1e7004f61b3362f3d3c5d10ef7cbbec397..b674b20b1b19c776b644c7c45cef71b4e81ce118 100644 (file)
@@ -337,6 +337,7 @@ bool is_daemonized(void)
 
 int os_mlock(void)
 {
+#ifdef HAVE_MLOCKALL
     int ret = 0;
 
     ret = mlockall(MCL_CURRENT | MCL_FUTURE);
@@ -345,4 +346,7 @@ int os_mlock(void)
     }
 
     return ret;
+#else
+    return -ENOSYS;
+#endif
 }