headers must include all there dependencies, no more, no less
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
#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"
* 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>
#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__); \