2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

_S_IFREG is not a standard stat() flag. The standard flag is "S_IFREG". This fixes compilation on CW8, probably others.

[SVN r27368]
This commit is contained in:
Rene Rivera
2005-02-14 04:02:52 +00:00
parent 9aed3db356
commit 419b0ea085
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;