From eaab0d8de095b43b146d84756e80c30777fc6098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 17 May 1998 21:08:41 +0200 Subject: [PATCH] Added a note to the statfs() test. Rev: src/modules/files/configure.in:1.45 --- src/modules/files/configure.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/files/configure.in b/src/modules/files/configure.in index d28f3aa1a1..5778818c60 100644 --- a/src/modules/files/configure.in +++ b/src/modules/files/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.44 1998/05/01 15:41:34 grubba Exp $ +# $Id: configure.in,v 1.45 1998/05/17 19:08:41 grubba Exp $ AC_INIT(file.c) AC_CONFIG_HEADER(file_machine.h) @@ -181,12 +181,18 @@ int main() exit(0); /* NOT REACHED */ + /* NOTE: + * If there isn't any prototype for statfs this will succeed even + * on BSDs. This doesn't matter since the first two arguments are + * the same on both BSD and SysV. + * /grubba 1998-05-17 + */ statfs((char *)0, (struct statfs *)0, 0, 0); } ],pike_cv_func_sysv_statfs=yes,pike_cv_func_sysv_statfs=no) ]) if test x$pike_cv_func_sysv_statfs = xyes ; then - AC_MSG_RESULT(SysV style) + AC_MSG_RESULT([SysV style, or no prototype]) AC_DEFINE(HAVE_SYSV_STATFS) else AC_MSG_RESULT(BSD style) -- GitLab