diff mbox

[v2,iproute2,2/3] libnamespaces: fix warning about syscall()

Message ID 1429691227-12310-2-git-send-email-nicolas.dichtel@6wind.com
State Accepted, archived
Delegated to: stephen hemminger
Headers show

Commit Message

Nicolas Dichtel April 22, 2015, 8:27 a.m. UTC
The warning was:
In file included from namespace.c:14:0:
../include/namespace.h: In function ‘setns’:
../include/namespace.h:37:2: warning: implicit declaration of function ‘syscall’ [-Wimplicit-function-declaration]

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 include/namespace.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/include/namespace.h b/include/namespace.h
index a2ac7dccd0e1..5add9d266b7d 100644
--- a/include/namespace.h
+++ b/include/namespace.h
@@ -3,6 +3,7 @@ 
 
 #include <sched.h>
 #include <sys/mount.h>
+#include <unistd.h>
 #include <sys/syscall.h>
 #include <errno.h>