diff -r -w -p -u -N bbs100-2.1/etc/local_mods bbs100-2.1-mjb-win32/etc/local_mods --- bbs100-2.1/etc/local_mods 2004-02-01 12:13:58.000000000 +0100 +++ bbs100-2.1-mjb-win32/etc/local_mods 2004-06-13 14:32:13.000000000 +0200 @@ -1,2 +1,8 @@ -This site has no reported local modifications and claims to be running an -unmodified version of bbs100. + +M. J. Bethlehem (dmouse@hartelgroep.nl), 20040613 +------------------------------------------------- + +A header file called 'Win32.h' was added and included into the source +code which allows bbs100 to be compiled and run in a Windows NT +compatible environment. + diff -r -w -p -u -N bbs100-2.1/src/Process.c bbs100-2.1-mjb-win32/src/Process.c --- bbs100-2.1/src/Process.c 2004-02-01 12:13:58.000000000 +0100 +++ bbs100-2.1-mjb-win32/src/Process.c 2004-06-13 14:00:17.000000000 +0200 @@ -28,6 +28,7 @@ #include "Signal.h" #include "cstring.h" #include "Param.h" +#include "Win32.h" #include #include diff -r -w -p -u -N bbs100-2.1/src/Signal.c bbs100-2.1-mjb-win32/src/Signal.c --- bbs100-2.1/src/Signal.c 2004-02-01 12:13:58.000000000 +0100 +++ bbs100-2.1-mjb-win32/src/Signal.c 2004-06-13 14:01:24.000000000 +0200 @@ -35,6 +35,7 @@ #include "timeout.h" #include "Param.h" #include "OnlineUser.h" +#include "Win32.h" #include #include diff -r -w -p -u -N bbs100-2.1/src/include/Win32.h bbs100-2.1-mjb-win32/src/include/Win32.h --- bbs100-2.1/src/include/Win32.h 1970-01-01 01:00:00.000000000 +0100 +++ bbs100-2.1-mjb-win32/src/include/Win32.h 2004-06-14 14:28:11.859375000 +0200 @@ -0,0 +1,62 @@ +/* + bbs100 2.1 WJ100 + Copyright (C) 2000 Walter de Jong + This file copyright (C) 2004 M. J. Bethlehem (dmouse@hartelgroep.nl) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ +/* + Win32.h MJB2004 +*/ + +#ifndef __WIN32_H_MJB2004__ +#define __WIN32_H_MJB2004__ + +/* fixups for missing declaration in the Cygwin package */ +#include +#include +#include + +/* MJB 20040613 + special defines for Cygnucc GCC for Win32, + if a SIGxxx define has not been defined yet, + default to the UNIX semantics */ + +#ifndef SIGINT +#define SIGINT 2 +#endif + +#ifndef SIGKILL +#define SIGKILL 9 +#endif + +#ifndef SIGTERM +#define SIGTERM 15 +#endif + +#ifndef SIGCONT +#define SIGCONT 19 +#endif + +#ifndef SIGCHLD +#define SIGCHLD 20 +#endif + +#define SIG_DFL ((void (*)(int))0) /* Default action */ +#define SIG_IGN ((void (*)(int))1) /* Ignore action */ +#define SIG_ERR ((void (*)(int))-1) /* Error return */ + +#endif + diff -r -w -p -u -N bbs100-2.1/src/inet.c bbs100-2.1-mjb-win32/src/inet.c --- bbs100-2.1/src/inet.c 2004-02-01 12:13:58.000000000 +0100 +++ bbs100-2.1-mjb-win32/src/inet.c 2004-06-13 14:00:51.000000000 +0200 @@ -46,6 +46,7 @@ #include "main.h" #include "state.h" #include "OnlineUser.h" +#include "Win32.h" #include #include