Commit b2679f57 authored by deuce's avatar deuce
Browse files

Fixed to make it build on Win32.

Spying doesn't work since the current code only uses UNIX-domain sockets.
parent f04caf21
......@@ -36,8 +36,8 @@
****************************************************************************/
#include <sys/types.h>
#include <utime.h>
#include <genwrap.h>
#include "ciolib.h"
#define __COLORS
#include "sbbs.h"
......
......@@ -35,20 +35,29 @@
* Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/
#include <unistd.h>
#include <stdlib.h>
#include "sockwrap.h" /* Must go before <sys/un.h> */
#ifndef _WIN32
#include <sys/un.h>
#endif
#include <stdio.h>
#include <string.h>
#include "sockwrap.h"
#include <genwrap.h>
#include <sockwrap.h>
#include "spyon.h"
#include "ciolib.h"
#include "cterm.h"
#include "uifc.h"
struct cterminal *cterm;
extern uifcapi_t uifc; /* User Interface (UIFC) Library API */
int spyon(char *sockname) {
#if defined _WIN32
uifc.msg("Spying not supported on Win32 yet!");
return SPY_SOCKETLOST;
#else
SOCKET spy_sock=INVALID_SOCKET;
struct sockaddr_un spy_name;
socklen_t spy_len;
......@@ -160,5 +169,6 @@ int spyon(char *sockname) {
textattr(ti.attribute);
gotoxy(ti.curx,ti.cury);
return(retval);
#endif
}
......@@ -38,12 +38,10 @@
#include <signal.h>
#include <sys/types.h>
#include <time.h>
#include <sys/time.h>
#ifdef __QNX__
#include <string.h>
#endif
#include <stdio.h>
#include <unistd.h>
#include "ciolib.h"
#define __COLORS /* Disable the colour macros in sbbsdefs.h ToDo */
......@@ -934,7 +932,9 @@ int main(int argc, char** argv) {
}
}
#ifdef SIGPIPE
signal(SIGPIPE, SIG_IGN);
#endif
uifc.size=sizeof(uifc);
i=initciolib(ciolib_mode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment