From owner-cvs-all Mon Jun 24 10:52:38 2002 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 4B20C37B400; Mon, 24 Jun 2002 10:52:26 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.3) with ESMTP id g5OHqPDK004483; Mon, 24 Jun 2002 13:52:25 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.3/Submit) id g5OHqP6M004480; Mon, 24 Jun 2002 13:52:25 -0400 (EDT) (envelope-from wollman) Date: Mon, 24 Jun 2002 13:52:25 -0400 (EDT) From: Garrett Wollman Message-Id: <200206241752.g5OHqP6M004480@khavrinen.lcs.mit.edu> To: Jun Kuriyama Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/net/net-snmp/files patch-al In-Reply-To: <200206240046.g5O0kiG62693@freefall.freebsd.org> References: <200206240046.g5O0kiG62693@freefall.freebsd.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < said: > This breakage is caused because: > o struct statvfs is defined and statvfs() function is declared. > o statvfs() function is not yet implemented. > So detection of statvfs related is commented out until function will > be implemented. Actually, the correct fix is: if test "${ac_cv_header_sys_statvfs_h}" = "yes"; then AC_CHECK_FUNC(statvfs) fi ...and then in the C code... #ifdef HAVE_SYS_STATVFS_H #include #endif /* ... */ #if defined(HAVE_STRUCT_STATVFS) struct statvfs buf; #elif defined(HAVE_STRUCT_STATFS) struct statfs buf; #else /* do whatever else you might do */ #endif #if defined(HAVE_STATVFS) rv = statvfs(path, &buf); #elif defined(OTHER_METHOD) /* ... */ #elif defined(YET_ANOTHER_METHOD) /* ... */ #endif -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message