Kill daemon deprication warning on osx. We get it.

This commit is contained in:
Joris Vink 2014-04-12 18:49:01 +02:00
parent 8e88ac41ff
commit 3f7e7e696e
1 changed files with 9 additions and 0 deletions

View File

@ -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