From: kramm Date: Mon, 29 Oct 2001 18:36:13 +0000 (+0000) Subject: include sys/types.h, also X-Git-Tag: release-0-1-0~70 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=489d33cdbe080109fb0f2d34909b7c00efd77e12 include sys/types.h, also --- diff --git a/src/swfdump.c b/src/swfdump.c index df55e9b..34323c7 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -7,9 +7,20 @@ This file is distributed under the GPL, see file COPYING for details */ +#define HAVE_STAT + #ifdef HAVE_SYS_STAT_H #include +#else +#undef HAVE_STAT +#endif + +#ifdef HAVE_SYS_TYPES_H +#include +#else +#undef HAVE_STAT #endif + #include #include #include @@ -60,7 +71,7 @@ int main (int argc,char ** argv) { SWF swf; TAG*tag; -#ifdef HAVE_SYS_STAT_H +#ifdef HAVE_STAT struct stat statbuf; #endif int f; @@ -84,7 +95,7 @@ int main (int argc,char ** argv) exit(1); } -#ifdef HAVE_SYS_STAT_H +#ifdef HAVE_STAT fstat(f, &statbuf); if(statbuf.st_size != swf.FileSize) fprintf(stderr, "Error: Real Filesize (%d) doesn't match header Filesize (%d)",