aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-02-12 14:34:59 +0000
committerlloyd <[email protected]>2008-02-12 14:34:59 +0000
commit862a377961b21cafb1313fdcd9e0ef785514695e (patch)
tree644f5e6fe381a271c069d5d45725465a355836db
parent8a0ab0f8508a844d39360e38d0c161d39e91bc67 (diff)
Fix compilation with GCC 3.2 - it doesn't like the :: namespace specification
for struct stat
-rw-r--r--modules/es_ftw/es_ftw.cpp2
-rw-r--r--modules/es_unix/es_unix.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/es_ftw/es_ftw.cpp b/modules/es_ftw/es_ftw.cpp
index 63531eb53..cbee7396d 100644
--- a/modules/es_ftw/es_ftw.cpp
+++ b/modules/es_ftw/es_ftw.cpp
@@ -71,7 +71,7 @@ void FTW_EntropySource::gather_from_dir(const std::string& dirname)
const std::string filename = dirname + '/' + entry->d_name;
- struct ::stat stat_buf;
+ struct stat stat_buf;
if(::lstat(filename.c_str(), &stat_buf) == -1)
{ entry = ::readdir(dir); continue; }
diff --git a/modules/es_unix/es_unix.cpp b/modules/es_unix/es_unix.cpp
index 40be78e22..f1302cb61 100644
--- a/modules/es_unix/es_unix.cpp
+++ b/modules/es_unix/es_unix.cpp
@@ -51,7 +51,7 @@ void Unix_EntropySource::do_fast_poll()
for(u32bit j = 0; STAT_TARGETS[j]; j++)
{
- struct ::stat statbuf;
+ struct stat statbuf;
clear_mem(&statbuf, 1);
::stat(STAT_TARGETS[j], &statbuf);
add_bytes(&statbuf, sizeof(statbuf));