From 65bf6cf8610ed8e9541db6df3060ab390002ef36 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Thu, 21 Jan 2010 22:07:23 +0100 Subject: few fixes to compile on non-linux plaftorms --- main.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index d27c4d4a..353bcfa1 100644 --- a/main.c +++ b/main.c @@ -20,7 +20,14 @@ #include #include #include +#ifdef __linux__ +#include +#endif +#ifndef __linux__ +#define _POSIX_C_SOURCE +#endif #include +#include #include #include #include @@ -28,7 +35,6 @@ #include #include #include -#include #include #ifdef HAVE_CONFIG_H # include @@ -45,6 +51,10 @@ #include "session.h" #include "plugins.h" +#ifndef PATH_MAX +#define PATH_MAX 1024 /* max # of characters in a path name */ +#endif + #ifndef PREFIX #error PREFIX must be defined #endif -- cgit v1.2.3