From 5998a2c035e90aa01d97da26b9ef2b2b503f3d83 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 23 May 2010 14:37:19 +0200 Subject: fixed error handling on Unix --- src/errors.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/errors.c b/src/errors.c index a453dbe..9914b51 100644 --- a/src/errors.c +++ b/src/errors.c @@ -15,14 +15,17 @@ along with this program. If not, see . */ +#include "port/string.h" /* for strncpy, strerror_r */ #include "errors.h" #include "port/gettext.h" /* for localization */ -#include "port/string.h" /* for strncpy, strerror_r */ + #if defined _WIN32 #define WIN32_MEAN_AND_LEAN -#include +#include /* for GetLastError */ +#else +#include /* for errno */ #endif /* defined _WIN32 */ char *wolf_error_msg( const wolf_error_t error, char *buf, size_t buflen ) { -- cgit v1.2.3-54-g00ecf