2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

vlog: Only compile vlog_change_owner on Unix platform

uid_t and gid_t are not defined for Windows platform.

Signed-off-by: Andy Zhou <azhou@nicira.com>
This commit is contained in:
Andy Zhou
2015-11-11 18:49:04 -08:00
parent 2258d8b5d2
commit de929213d1
3 changed files with 7 additions and 3 deletions

View File

@@ -849,7 +849,7 @@ daemon_become_new_user__(bool access_datapath)
{
/* If vlog file has been created, change its owner to the non-root user
* as specifed by the --user option. */
vlog_change_owner(uid, gid);
vlog_change_owner_unix(uid, gid);
if (LINUX) {
if (LIBCAPNG) {