From 3fc7dd1e5de9d72d1c9fbb1ce65703c9f206cfdf Mon Sep 17 00:00:00 2001 From: dockes Date: Sat, 8 Sep 2007 09:44:43 +0000 Subject: [PATCH] small pb in solaris fix --- src/utils/readfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/readfile.cpp b/src/utils/readfile.cpp index 2e37a9d7..18e5f3d7 100644 --- a/src/utils/readfile.cpp +++ b/src/utils/readfile.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: readfile.cpp,v 1.5 2007-09-08 08:07:05 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: readfile.cpp,v 1.6 2007-09-08 09:44:43 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -34,6 +34,8 @@ using std::string; static void caterrno(string *reason) { +#define ERRBUFSZ 200 + char errbuf[ERRBUFSZ]; if (reason) { #ifdef sun // Note: sun strerror is noted mt-safe ?? @@ -47,8 +49,6 @@ static void caterrno(string *reason) bool file_to_string(const string &fn, string &data, string *reason) { -#define ERRBUFSZ 200 - char errbuf[ERRBUFSZ]; bool ret = false; int fd = open(fn.c_str(), O_RDONLY|O_STREAMING);