PATCH - makedep

Steven Edwards Steven_Ed4153 at
Thu May 2 04:48:25 CDT 2002

I don't know if this will cause any problems for other platforms but it
works here. 
Of course so did my last dirty hack so can someone point out a better
way? According to if the system has
ftruncate it 
just calls it.

If this isnt cool then would the configure check work here to #define
ftruncate chsize?

Changelog: changed ftruncate to chsize for mingw port

cvs diff -u makedep.c 
Index: makedep.c
RCS file: /home/wine/wine/tools/makedep.c,v
retrieving revision 1.10
diff -u -r1.10 makedep.c
--- makedep.c	10 Mar 2002 00:24:22 -0000	1.10
+++ makedep.c	2 May 2002 09:31:04 -0000
@@ -381,7 +381,7 @@
         while (fgets( buffer, sizeof(buffer), file ))
             if (!strncmp( buffer, Separator, strlen(Separator) ))
-        ftruncate( fileno(file), ftell(file) );
+        chsize( fileno(file), ftell(file) );
         fseek( file, 0L, SEEK_END );
     if (!file)

More information about the wine-devel mailing list