@@ -11,6 +11,10 @@
* GNU General Public License for more details.
*/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include <stdlib.h>
#include <fcntl.h>
#include <libubox/ustream.h>
@@ -39,6 +39,10 @@
#include <libubox/uloop.h>
#include <libubus.h>
+#ifndef CLONE_NEWCGROUP
+#define CLONE_NEWCGROUP 0x02000000
+#endif
+
#define STACK_SIZE (1024 * 1024)
#define OPT_ARGS "S:C:n:h:r:w:d:psulocU:G:NR:fFO:T:Ey"
@@ -33,6 +33,11 @@
#define PTRACE_EVENT_STOP 128
#endif
+#ifndef PTRACE_EVENT_SECCOMP
+/* undefined with uClibc-ng */
+#define PTRACE_EVENT_SECCOMP 7
+#endif
+
#include <libubox/ulog.h>
#include <libubox/uloop.h>
#include <libubox/blobmsg.h>
_GNU_SOURCE was missing. Also defined two macros unavailable with uClibc-ng. Signed-off-by: Rosen Penev <rosenp@gmail.com> --- jail/console.c | 4 ++++ jail/jail.c | 4 ++++ trace/trace.c | 5 +++++ 3 files changed, 13 insertions(+)