Loading qga/commands-posix.c +6 −1 Original line number Diff line number Diff line Loading @@ -22,8 +22,13 @@ #include "host-utils.h" #ifndef CONFIG_HAS_ENVIRON #ifdef __APPLE__ #include <crt_externs.h> #define environ (*_NSGetEnviron()) #else extern char **environ; #endif #endif #if defined(__linux__) #include <mntent.h> Loading Loading @@ -340,7 +345,7 @@ static int guest_fsfreeze_build_mount_list(GuestFsfreezeMountList *mounts) { struct mntent *ment; GuestFsfreezeMount *mount; char const *mtab = MOUNTED; char const *mtab = "/proc/self/mounts"; FILE *fp; fp = setmntent(mtab, "r"); Loading Loading
qga/commands-posix.c +6 −1 Original line number Diff line number Diff line Loading @@ -22,8 +22,13 @@ #include "host-utils.h" #ifndef CONFIG_HAS_ENVIRON #ifdef __APPLE__ #include <crt_externs.h> #define environ (*_NSGetEnviron()) #else extern char **environ; #endif #endif #if defined(__linux__) #include <mntent.h> Loading Loading @@ -340,7 +345,7 @@ static int guest_fsfreeze_build_mount_list(GuestFsfreezeMountList *mounts) { struct mntent *ment; GuestFsfreezeMount *mount; char const *mtab = MOUNTED; char const *mtab = "/proc/self/mounts"; FILE *fp; fp = setmntent(mtab, "r"); Loading