[ovs-git] [openvswitch/ovs] 6e6271: Fix build when HAVE_LIBCAPNG is not defined.
GitHub
noreply at github.com
Thu Oct 1 15:52:17 UTC 2015
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 6e6271d2f56f3940cc06930054bba86a47859bcc
https://github.com/openvswitch/ovs/commit/6e6271d2f56f3940cc06930054bba86a47859bcc
Author: Russell Bryant <rbryant at redhat.com>
Date: 2015-10-01 (Thu, 01 Oct 2015)
Changed paths:
M lib/daemon-unix.c
Log Message:
-----------
Fix build when HAVE_LIBCAPNG is not defined.
The function daemon_become_new_user_linux was conditionally defined but
then used in code unconditionally. If HAVE_LIBCAPNG is not defined, the
function would never be called, but it still must exist.
Adjust the #if guard around the function to be around the body of the
function instead of outside of its definition to ensure the function is
always defined, even if empty.
This issue was introduced in e91b927d8966bfcb9768225392324dde4fd7d7f6.
Signed-off-by: Russell Bryant <rbryant at redhat.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
More information about the git
mailing list