[PATCH libvirt 3/3] build: update pid_t type static check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The code uses long long for pid_t now.
It fails on mingw64 without this change.
---
 src/util/virpidfile.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/virpidfile.c b/src/util/virpidfile.c
index 59d0c94..27811e1 100644
--- a/src/util/virpidfile.c
+++ b/src/util/virpidfile.c
@@ -316,8 +316,7 @@ cleanup:
     return rc;
 }
 
-
-verify(sizeof(pid_t) <= sizeof(unsigned int));
+verify(sizeof(pid_t) <= sizeof(long long));
 
 int virPidFileAcquirePath(const char *path,
                           pid_t pid)
-- 
1.7.10

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]