mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 11:13:50 +00:00
clone: Support bionic's clone() defintion
The clone() call in bionic is very slightly different. This updates namespace.h to support both glibc and bionic. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
9818cae412
commit
1f1665e6ca
@ -26,6 +26,8 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <sched.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef CLONE_FS
|
||||
# define CLONE_FS 0x00000200
|
||||
#endif
|
||||
@ -47,9 +49,14 @@
|
||||
#ifndef CLONE_NEWNET
|
||||
# define CLONE_NEWNET 0x40000000
|
||||
#endif
|
||||
#ifdef IS_BIONIC
|
||||
int clone(int (*fn)(void *), void *child_stack,
|
||||
int flags, void *arg);
|
||||
#else
|
||||
int clone(int (*fn)(void *), void *child_stack,
|
||||
int flags, void *arg, ...
|
||||
/* pid_t *ptid, struct user_desc *tls, pid_t *ctid */ );
|
||||
#endif
|
||||
|
||||
|
||||
extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags);
|
||||
|
Loading…
Reference in New Issue
Block a user