diff options
author | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-02-24 16:40:41 +0000 |
---|---|---|
committer | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-02-24 16:40:41 +0000 |
commit | d495ca387a07c0caf78975e1f170c5e6bb9fb326 (patch) | |
tree | 7e581b9e709545fc51ae1d7f4516a58f348b0ecf | |
parent | faff6019cf04cdff954881056d24473f21d913f6 (diff) | |
download | manaserv-d495ca387a07c0caf78975e1f170c5e6bb9fb326.tar.gz manaserv-d495ca387a07c0caf78975e1f170c5e6bb9fb326.tar.bz2 manaserv-d495ca387a07c0caf78975e1f170c5e6bb9fb326.tar.xz manaserv-d495ca387a07c0caf78975e1f170c5e6bb9fb326.zip |
Small modification to fix compilation issues on MS-Windows
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/account-server/main-account.cpp | 2 | ||||
-rw-r--r-- | src/game-server/main-game.cpp | 2 |
3 files changed, 6 insertions, 0 deletions
@@ -4,6 +4,8 @@ * src/game-server/gamehandler.cpp, src/game-server/accountconnection.cpp: Bugfixes related to switch_character. + * src/account-server/main-account.cpp, src/game-server/main-game.cpp: + Small modification to accomodate MS-Windows. 2007-02-04 Rogier Polak <rogier_polak@users.sourceforge.net> diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index dc06be96..cf743688 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -85,7 +85,9 @@ void initialize() signal(SIGSEGV, SIG_DFL); // Used to close via process signals +#if (defined __USE_UNIX98 || defined __FreeBSD__) signal(SIGQUIT, closeGracefully); +#endif signal(SIGINT, closeGracefully); // Set enet to quit on exit. diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index b33c4016..6383a9ec 100644 --- a/src/game-server/main-game.cpp +++ b/src/game-server/main-game.cpp @@ -112,7 +112,9 @@ void initialize() signal(SIGSEGV, SIG_DFL); // Used to close via process signals +#if (defined __USE_UNIX98 || defined __FreeBSD__) signal(SIGQUIT, closeGracefully); +#endif signal(SIGINT, closeGracefully); /* |