diff options
author | Adam <Adam@anope.org> | 2013-03-01 00:57:24 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-03-01 00:57:24 -0500 |
commit | 91ad9d22cad8c1da3134975852ba1f732b55dabe (patch) | |
tree | f93eb451755e2e531c75d2c16ced8c96f17e243c /src | |
parent | 6aa9ad938a4923bd730516aa97a6e19643fd5c57 (diff) |
Fix Windows build
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 2 | ||||
-rw-r--r-- | src/misc.cpp | 2 | ||||
-rw-r--r-- | src/win32/anope_windows.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index a419c9f8d..7c6d1731d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -189,7 +189,9 @@ static void InitSignals() sa.sa_handler = SIG_IGN; +#ifndef _WIN32 sigaction(SIGCHLD, &sa, NULL); +#endif sigaction(SIGPIPE, &sa, NULL); } diff --git a/src/misc.cpp b/src/misc.cpp index 18d737dbc..e9e5c68a3 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -23,8 +23,10 @@ #include <errno.h> #include <sys/types.h> #include <sys/stat.h> +#ifndef _WIN32 #include <sys/socket.h> #include <netdb.h> +#endif NumberList::NumberList(const Anope::string &list, bool descending) : is_valid(true), desc(descending) { diff --git a/src/win32/anope_windows.h b/src/win32/anope_windows.h index c0a2232a7..fdeb36fb1 100644 --- a/src/win32/anope_windows.h +++ b/src/win32/anope_windows.h @@ -52,8 +52,6 @@ #endif #define EINPROGRESS WSAEWOULDBLOCK -#include "extensible.h" - #include "socket.h" #include "dir/dir.h" #include "dl/dl.h" @@ -77,7 +75,5 @@ extern int unsetenv(const char *name); extern int mkstemp(char *input); extern void getcwd(char *buf, size_t sz); -template struct ExtensibleItemClass<Anope::string>; - #endif // _WIN32 #endif // WINDOWS_H |