summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/replace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index 255b6ad4ba..03fae90859 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -870,6 +870,7 @@ int rep_getpeereid(int s, uid_t *uid, gid_t *gid)
socklen_t cred_len = sizeof(struct ucred);
int ret;
+#undef getsockopt
ret = getsockopt(s, SOL_SOCKET, SO_PEERCRED, (void *)&cred, &cred_len);
if (ret != 0) {
return -1;