httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@ai.mit.edu (Robert S. Thau)
Subject Re: 0.8.11 (fwd)
Date Sun, 27 Aug 1995 19:10:32 GMT
A thought --- the problem could be kludged around, for the most part, by
replacing the code which is giving rise to this problem,

#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
                sprintf(tag,"%qd",finfo.st_size);
#else
                sprintf(tag,"%ld",finfo.st_size);
#endif

by a simple

                sprintf (tag, "%ld", (long)finfo.st_size);

This would have two effects ---

1) It would compile on *all* systems, without having to do anything messy
   to conf.h

2) the fsize include directive would perform badly for files over 2
   gigabytes in size on the affected bsd variants.  (That's individual
   files, not disk drives).

So, BSD users --- is this an acceptable way of dealing with the problem?

rst

Mime
View raw message