mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 23:21:26 +00:00
commit
3b1d3a5d4c
|
@ -57,7 +57,7 @@
|
||||||
const unsigned char raw_header[RAW_HDR_LEN] = { 0x10, 0xd1, 0x9e, 0x00 };
|
const unsigned char raw_header[RAW_HDR_LEN] = { 0x10, 0xd1, 0x9e, 0x00 };
|
||||||
|
|
||||||
/* daemon(3) exists only in 4.4BSD or later, and in GNU libc */
|
/* daemon(3) exists only in 4.4BSD or later, and in GNU libc */
|
||||||
#if !defined(ANDROID) && !defined(WINDOWS32) && !(defined(BSD) && (BSD >= 199306)) && !defined(__GLIBC__)
|
#if !defined(ANDROID) && !defined(WINDOWS32) && !(defined(BSD) && (BSD >= 199306)) && !defined(__GLIBC__) && !defined(__HAIKU__)
|
||||||
static int daemon(int nochdir, int noclose)
|
static int daemon(int nochdir, int noclose)
|
||||||
{
|
{
|
||||||
int fd, i;
|
int fd, i;
|
||||||
|
|
|
@ -13,7 +13,7 @@ link)
|
||||||
echo '-lsocket -lbind -lbsd';
|
echo '-lsocket -lbind -lbsd';
|
||||||
;;
|
;;
|
||||||
Haiku)
|
Haiku)
|
||||||
echo '-lnetwork';
|
echo '-lnetwork -lbsd';
|
||||||
;;
|
;;
|
||||||
windows32)
|
windows32)
|
||||||
echo '-lws2_32 -liphlpapi';
|
echo '-lws2_32 -liphlpapi';
|
||||||
|
@ -35,6 +35,9 @@ cflags)
|
||||||
BeOS)
|
BeOS)
|
||||||
echo '-Dsocklen_t=int';
|
echo '-Dsocklen_t=int';
|
||||||
;;
|
;;
|
||||||
|
Haiku)
|
||||||
|
echo '-D_DEFAULT_SOURCE';
|
||||||
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
echo '-D__APPLE_USE_RFC_3542';
|
echo '-D__APPLE_USE_RFC_3542';
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue