set #defines only if not set already
This commit is contained in:
vanhempi
a7c6ef6c57
commit
bad600b3a8
6
qssb.h
6
qssb.h
@ -1,6 +1,10 @@
|
||||
#ifndef QSSB_H
|
||||
#define QSSB_H
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <sched.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
@ -32,7 +36,9 @@
|
||||
|
||||
#define QSSB_ISOLATE_NETWORK 1<<1
|
||||
|
||||
#ifndef QSSB_LOG_ERROR
|
||||
#define QSSB_LOG_ERROR(...) fprintf(stderr, __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
/* Policy tells qssb what to do */
|
||||
struct qssb_policy
|
||||
|
Ladataan…
Viittaa uudesa ongelmassa
Block a user