Hi! I suppose there must be #ifndef HAVE_FTRUNCATE ... #endif added to lib/ftruncate.c file to turn-off ftruncate emulation if this function is defined in lib C. Current version of ftrucate.c causes unpredictable linker behavior if ftruncate is used within some cvs code.
Here is a patch code: Index: ftruncate.c =================================================================== RCS file: /cvs/ccvs/lib/ftruncate.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 ftruncate.c --- ftruncate.c 3 Dec 1994 06:09:32 -0000 1.1.1.1 +++ ftruncate.c 12 Aug 2002 12:12:34 -0000 @@ -5,6 +5,8 @@ #include "config.h" #endif +#ifndef HAVE_FTRUNCATE + #include <sys/types.h> #include <fcntl.h> @@ -74,3 +76,4 @@ } #endif #endif +#endif \ No newline at end of file Regards, Andrey С уважением, Аристархов Андрей BiTechnology _______________________________________________ Bug-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-cvs