Skip to content
Snippets Groups Projects
Commit 5f10981a authored by rswindell's avatar rswindell
Browse files

Deuce's mod: OpenBSD support.

parent ff4d1a08
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,9 @@
#endif
#ifdef __unix__
#include <sys/param.h> /* BSD? */
#endif
/* ANSI C Library headers */
#include <stdio.h>
......@@ -1319,7 +1322,7 @@ void DLLCALL services_thread(void* arg)
close_socket(socket);
continue;
}
#ifdef __FreeBSD__
#ifdef BSD
if(setsockopt(socket,SOL_SOCKET,SO_REUSEPORT
,(char*)&optval,sizeof(optval))!=0) {
lprintf("%04d !ERROR %d setting %s socket option"
......@@ -1502,7 +1505,7 @@ void DLLCALL services_thread(void* arg)
close_socket(client_socket);
continue;
}
#ifdef __FreeBSD__
#ifdef BSD
if(setsockopt(client_socket,SOL_SOCKET,SO_REUSEPORT
,(char*)&optval,sizeof(optval))!=0) {
FREE_AND_NULL(udp_buf);
......
......@@ -44,9 +44,11 @@
#ifdef __unix__
#include <sys/wait.h> // WEXITSTATUS
#ifdef __FreeBSD__
#if defined(__FreeBSD__)
#include <libutil.h> // forkpty()
#else
#elif defined(__OpenBSD__)
#include <util.h>
#elif defined(__linux__)
#include <pty.h>
#endif
#include <termios.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment