ujail: add <stdio.h> and <syslog.h> to seccomp.h
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Fri, 27 Nov 2015 16:27:06 +0000 (16:27 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 27 Nov 2015 16:48:49 +0000 (17:48 +0100)
headers must include all there dependencies, no more, no less

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/preload.c
jail/seccomp.c
jail/seccomp.h

index a1cc0b69ebaaf45d9b0a7279c3c1ae747b0bb264..5466f27d0ba5b5b6a9723d0113e12061ec6dd295 100644 (file)
 
 #define _GNU_SOURCE
 #include <sys/types.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <dlfcn.h>
-#include <syslog.h>
 
 #include "seccomp.h"
 #include "../preload.h"
index de01fc68df116ea2f84e93b409184bac6a6f9807..dcd19ecd4eaa86c06f36054a25a7de1bd44c2cc8 100644 (file)
  * found in the LICENSE file.
  */
 #define _GNU_SOURCE 1
-#include <stdio.h>
 #include <stddef.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <syslog.h>
 
 #include <libubox/utils.h>
 #include <libubox/blobmsg.h>
index 0992b791723e7a192f04a5e09f3817f8dd72b113..603281297234813be3f6e7325c982bdf492ae46e 100644 (file)
@@ -13,6 +13,9 @@
 #ifndef _JAIL_SECCOMP_H_
 #define _JAIL_SECCOMP_H_
 
+#include <stdio.h>
+#include <syslog.h>
+
 #define INFO(fmt, ...) do { \
        syslog(LOG_INFO,"preload-seccomp: "fmt, ## __VA_ARGS__); \
        fprintf(stderr,"preload-seccomp: "fmt, ## __VA_ARGS__); \