summaryrefslogtreecommitdiff
path: root/lib/daemon-unix.c
diff options
context:
space:
mode:
authorAndy Zhou <azhou@nicira.com>2015-11-11 18:49:04 -0800
committerAndy Zhou <azhou@nicira.com>2015-11-11 18:54:10 -0800
commitde929213d10d25394df586dfffe8e3dd04976155 (patch)
tree30582f1c952250e68ece96680abb5cdb5604a7c4 /lib/daemon-unix.c
parent2258d8b5d2099d7a2b56c8414e6d3bddc9b43f0f (diff)
downloadopenvswitch-de929213d10d25394df586dfffe8e3dd04976155.tar.gz
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>
Diffstat (limited to 'lib/daemon-unix.c')
-rw-r--r--lib/daemon-unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/daemon-unix.c b/lib/daemon-unix.c
index e69517ab4..a471b59a4 100644
--- a/lib/daemon-unix.c
+++ b/lib/daemon-unix.c
@@ -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) {