From 419b0ea085be403d562ca0c478aa72a453ea04e5 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 14 Feb 2005 04:02:52 +0000 Subject: [PATCH] _S_IFREG is not a standard stat() flag. The standard flag is "S_IFREG". This fixes compilation on CW8, probably others. [SVN r27368] --- historic/jam/src/filent.c | 2 +- jam_src/filent.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/historic/jam/src/filent.c b/historic/jam/src/filent.c index 3094d9081..24ad198c5 100644 --- a/historic/jam/src/filent.c +++ b/historic/jam/src/filent.c @@ -172,7 +172,7 @@ int file_is_file(char* filename) if( stat( filename, &statbuf ) < 0 ) return -1; - if (statbuf.st_mode & _S_IFREG) + if (statbuf.st_mode & S_IFREG) return 1; else return 0; diff --git a/jam_src/filent.c b/jam_src/filent.c index 3094d9081..24ad198c5 100644 --- a/jam_src/filent.c +++ b/jam_src/filent.c @@ -172,7 +172,7 @@ int file_is_file(char* filename) if( stat( filename, &statbuf ) < 0 ) return -1; - if (statbuf.st_mode & _S_IFREG) + if (statbuf.st_mode & S_IFREG) return 1; else return 0;