mirror of
https://github.com/yarrick/iodine.git
synced 2025-10-17 16:51:54 +00:00
Make it build and fix tests in cygwin
This commit is contained in:
@@ -15,7 +15,11 @@
|
||||
*/
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#ifndef __CYGWIN__
|
||||
#include <arpa/nameser.h>
|
||||
#else
|
||||
#include "windows.h"
|
||||
#endif
|
||||
#include <netinet/in.h>
|
||||
#ifdef DARWIN
|
||||
#include <arpa/nameser8_compat.h>
|
||||
@@ -38,7 +42,7 @@
|
||||
#include "common.h"
|
||||
|
||||
/* daemon(3) exists only in 4.4BSD or later, and in GNU libc */
|
||||
#if !(defined(BSD) && (BSD >= 199306)) && !defined(__GLIBC__)
|
||||
#if !(defined(__CYGWIN__)) && !(defined(BSD) && (BSD >= 199306)) && !defined(__GLIBC__)
|
||||
static int daemon(int nochdir, int noclose)
|
||||
{
|
||||
int fd, i;
|
||||
|
Reference in New Issue
Block a user