summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/src/gf-changelog-reborp.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/src/gf-changelog-reborp.c')
-rw-r--r--xlators/features/changelog/lib/src/gf-changelog-reborp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/changelog/lib/src/gf-changelog-reborp.c b/xlators/features/changelog/lib/src/gf-changelog-reborp.c
index 665a6d0a5da..4c49e9a533f 100644
--- a/xlators/features/changelog/lib/src/gf-changelog-reborp.c
+++ b/xlators/features/changelog/lib/src/gf-changelog-reborp.c
@@ -15,6 +15,8 @@
#include "changelog-rpc-common.h"
#include "changelog-lib-messages.h"
+#include "syscall.h"
+
/**
* Reverse socket: actual data transfer handler. Connection
* initiator is PROBER, data transfer is REBORP.
@@ -113,7 +115,7 @@ gf_changelog_reborp_rpcsvc_notify (rpcsvc_t *rpc, void *mydata,
switch (event) {
case RPCSVC_EVENT_ACCEPT:
- ret = unlink (RPC_SOCK(entry));
+ ret = sys_unlink (RPC_SOCK(entry));
if (ret != 0)
gf_msg (this->name, GF_LOG_WARNING, errno,
CHANGELOG_LIB_MSG_UNLINK_FAILED,