forked from mirrors/kore
Kill daemon deprication warning on osx. We get it.
This commit is contained in:
parent
8e88ac41ff
commit
3f7e7e696e
|
@ -17,6 +17,10 @@
|
|||
#ifndef __H_KORE_H
|
||||
#define __H_KORE_H
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#define daemon portability_is_king
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/queue.h>
|
||||
|
||||
|
@ -33,6 +37,11 @@
|
|||
#include <unistd.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#undef daemon
|
||||
extern int daemon(int, int);
|
||||
#endif
|
||||
|
||||
#include "spdy.h"
|
||||
|
||||
#define KORE_RESULT_ERROR 0
|
||||
|
|
Loading…
Reference in New Issue