]> git.ipfire.org Git - thirdparty/libvirt.git/commit
maint: fix some compilation issues on non-linux platforms (part 2)
authorStefan Berger <stefanb@us.ibm.com>
Tue, 16 Aug 2011 19:36:22 +0000 (15:36 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 16 Aug 2011 19:36:22 +0000 (15:36 -0400)
commit57c7b40b76453f5f07b6b446f4ba4c5d7e7ec235
tree97817015c08e5c5b82ee7e281bcbc5ce08fa6034
parentf4765b691d0532476d802d026359153a3b9ad58a
maint: fix some compilation issues on non-linux platforms (part 2)

Get rid of the #if __linux__ check in virPidFileReadPathIfAlive that
was preventing a check of a symbolic link in /proc/<pid>/exe on
non-linux platforms against an expected executable. Replace
this with a run-time check testing whether the /proc/<pid>/exe is a
symbolic link and if so call the function doing the comparison
against the expected file the link is supposed to point to.
src/libvirt_private.syms
src/util/util.c
src/util/util.h
src/util/virpidfile.c