mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 10:20:04 +02:00
BSD platform, -DBSD
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifndef MACOSX
|
||||
#if !defined(MACOSX) && !defined(BSD)
|
||||
#include <sys/param.h>
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
@@ -40,6 +41,7 @@
|
||||
#include <signal.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#include <defines.h>
|
||||
@@ -447,7 +449,7 @@ int http_async_req_status(void *ctx)
|
||||
else if (PERRNO==WSAEISCONN)
|
||||
cx->state = HTS_IDLE;
|
||||
#endif
|
||||
#ifdef MACOSX
|
||||
#if defined(MACOSX) || defined(BSD)
|
||||
else if (PERRNO==EISCONN)
|
||||
cx->state = HTS_IDLE;
|
||||
#endif
|
||||
|
@@ -21,7 +21,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef MACOSX
|
||||
#if !defined(MACOSX) && !defined(BSD)
|
||||
#include <sys/param.h>
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
@@ -35,7 +36,6 @@
|
||||
#ifdef MACOSX
|
||||
#include <mach-o/dyld.h>
|
||||
#include <errno.h>
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#include <update.h>
|
||||
|
Reference in New Issue
Block a user