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