1*387f9dfdSAndroid Build Coastguard Worker // This file is only needed to support build for CentOS 6 2*387f9dfdSAndroid Build Coastguard Worker // Remove it when no longer needed. 3*387f9dfdSAndroid Build Coastguard Worker // File is trivial and therefore is in public domain. 4*387f9dfdSAndroid Build Coastguard Worker 5*387f9dfdSAndroid Build Coastguard Worker #ifndef _GNU_SOURCE 6*387f9dfdSAndroid Build Coastguard Worker #define _GNU_SOURCE 7*387f9dfdSAndroid Build Coastguard Worker #endif 8*387f9dfdSAndroid Build Coastguard Worker 9*387f9dfdSAndroid Build Coastguard Worker #include <unistd.h> 10*387f9dfdSAndroid Build Coastguard Worker #include <sys/syscall.h> 11*387f9dfdSAndroid Build Coastguard Worker 12*387f9dfdSAndroid Build Coastguard Worker #define setns(FD, NSTYPE) syscall(__NR_setns, (int)(FD), (int)(NSTYPE)) 13