From cbb9bb3617952a7736f5047ba4a74eae29521599 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Fri, 3 Jul 2009 16:36:49 +0200 Subject: Fix some includes. fixes mantis #760 reported by aidamax. --- eathena-monitor | Bin 18336 -> 11597 bytes eathena-monitor.c | 28 ++++++++++++++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/eathena-monitor b/eathena-monitor index fd1d36c..b883334 100755 Binary files a/eathena-monitor and b/eathena-monitor differ diff --git a/eathena-monitor.c b/eathena-monitor.c index 13048d4..d0b3995 100644 --- a/eathena-monitor.c +++ b/eathena-monitor.c @@ -1,9 +1,9 @@ -/* -Name: eAthena processes monitor -Author: Bartosz Waszak -License: GPL -Compilation: -gcc -o eathena-monitor eathena-monitor.c +/** + * Name: eAthena processes monitor + * Author: Bartosz Waszak + * License: GPL + * Compilation: + * gcc -o eathena-monitor eathena-monitor.c */ #include @@ -11,7 +11,21 @@ gcc -o eathena-monitor eathena-monitor.c #include #include #include +#include + +#if !defined(linux) && (defined(__sgi) || defined(__sun__) || defined(__sun) || defined(__sparc) || defined(__sparc__)) +#include +#endif + +#if defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__APPLE__) +#include +#include +#endif + +#if defined(linux) || defined(__CYGWIN32__) || defined(__hpux) #include +#endif + #include #include #include @@ -25,7 +39,9 @@ gcc -o eathena-monitor eathena-monitor.c #define CHAR_SERVER "char-server" #define CONFIG "conf/eathena-monitor.conf" #define LOGFILE "log/eathena-monitor.log" +#ifndef PATH_MAX #define PATH_MAX 4096 +#endif #define IS_BLANK(ptr) \ (((*(ptr)) == ' ') || ((*(ptr)) == '\b') || \ -- cgit v1.2.3-60-g2f50