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

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



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


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