inn 2.4.0 compilation failed

Russ Allbery rra at stanford.edu
Thu Jan 18 16:58:06 UTC 2001



Alexey Luckyanchikov <alexl at alkar.net> writes:

> inn 2.4.0 (cvsupped today at morning) fail:
> gcc -g -O2 -I../include   -c inndf.c
> inndf.c: In function `printspace':
> inndf.c:134: structure has no member named `f_avail
> *** Error code 1

> Stop.

> OS: FreeBSD 3.4-RELEASE
> Compiler: gcc version 2.7.2.3

Whoops, this should fix it.  Sorry about that.

Index: inndf.c
===================================================================
RCS file: /dist1/cvs/isc/inn/inn/backends/inndf.c,v
retrieving revision 1.16
diff -u -r1.16 inndf.c
--- inndf.c     2001/01/16 12:28:18     1.16
+++ inndf.c     2001/01/18 16:57:41
@@ -86,7 +86,7 @@
 # else
 #  define df_stat(p, s) (statfs((p), (s)) == 0)
 #  define df_declare(s) struct statfs s
-#  define df_avail(s)   ((s).f_avail)
+#  define df_avail(s)   ((s).f_bavail)
 #  define df_bsize(s)   ((s).f_bsize)
 #  define df_inodes(s)  ((s).f_ffree)
 # endif

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the inn-bugs mailing list