diff options
author | San Mehat <san@google.com> | 2010-01-20 10:16:30 -0800 |
---|---|---|
committer | San Mehat <san@google.com> | 2010-01-20 10:55:17 -0800 |
commit | 5658bcb797978c3472335d93554405aba8236f66 (patch) | |
tree | f017516d2d1e008fe912b15bbe8eee58ffcc4214 /src/dnsmasq.c | |
parent | ffd68729961f7383f2e35494a03ccdef20f86c98 (diff) | |
download | android_external_dnsmasq-5658bcb797978c3472335d93554405aba8236f66.tar.gz android_external_dnsmasq-5658bcb797978c3472335d93554405aba8236f66.tar.bz2 android_external_dnsmasq-5658bcb797978c3472335d93554405aba8236f66.zip |
dnsmasq: Tweak for building on Android
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'src/dnsmasq.c')
-rwxr-xr-x | src/dnsmasq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 48e3ecf..5d05f28 100755 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -385,7 +385,7 @@ int main (int argc, char **argv) (1 << CAP_NET_ADMIN) | (1 << CAP_NET_RAW) | (1 << CAP_SETUID); /* Tell kernel to not clear capabilities when dropping root */ - if (capset(hdr, data) == -1 || prctl(PR_SET_KEEPCAPS, 1) == -1) + if (capset(hdr, data) == -1 || prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) == -1) bad_capabilities = errno; #elif defined(HAVE_SOLARIS_NETWORK) @@ -441,7 +441,7 @@ int main (int argc, char **argv) #ifdef HAVE_LINUX_NETWORK if (daemon->options & OPT_DEBUG) - prctl(PR_SET_DUMPABLE, 1); + prctl(PR_SET_DUMPABLE, 1, 0, 0, 0); #endif if (daemon->port == 0) |