Fix errno usage and add DragonFly support
Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
parent
89151996c6
commit
0a67b18647
10 changed files with 18 additions and 31 deletions
|
|
@ -124,7 +124,7 @@ char *filename;
|
|||
{
|
||||
struct stat buf;
|
||||
|
||||
#if defined(__NetBSD__) || defined(__FreeBSD__)
|
||||
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
if (stat(filename, &buf) == 0) return (long)buf.st_size;
|
||||
#else
|
||||
if (stat(filename, &buf) == 0) return buf.st_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue