Fix errno usage and add DragonFly support

Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
Jörg Sonnenberger 2005-12-02 22:57:32 +00:00 • committed by Masanori Ogino
commit 0a67b18647
10 changed files with 18 additions and 31 deletions

View file

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