From 135df065c189a4dcd4fd0d3ebc5890c569b23e0f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 1 Nov 2004 23:52:15 +0000 Subject: [PATCH] Extremely bad idea: Since the inline stat() is not static, we get a endless recursion, if the server is not running. Fascinatingly this doesn't happen on R5, but at least on BONE (with the same executable) -- correctly, I would think. Apparently a bug in the R5 loader. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9726 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/jam/fileunix.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tools/jam/fileunix.c b/src/tools/jam/fileunix.c index c310b393af..49ce110198 100644 --- a/src/tools/jam/fileunix.c +++ b/src/tools/jam/fileunix.c @@ -101,8 +101,6 @@ struct ar_hdr /* archive file member header - printable ascii */ # ifdef OPT_STAT_CACHE_SERVER_EXT # include "beos_stat_cache.h" -inline int stat(const char *filename, struct stat *st) - { return beos_stat_cache_stat(filename, st); } # define opendir beos_stat_cache_opendir # define readdir beos_stat_cache_readdir # define closedir beos_stat_cache_closedir @@ -174,8 +172,13 @@ file_time( { struct stat statbuf; +# ifdef OPT_STAT_CACHE_SERVER_EXT + if( beos_stat_cache_stat( filename, &statbuf ) < 0 ) + return -1; +# else if( stat( filename, &statbuf ) < 0 ) return -1; +# endif *time = statbuf.st_mtime; return 0;