mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
a7514c177d
PR: 24570 Submitted by: Roman Shterenzon<roman@xpert.com>
26 lines
598 B
Plaintext
26 lines
598 B
Plaintext
--- lib/fs.c.orig Wed Jun 14 21:34:30 2000
|
|
+++ lib/fs.c Tue Mar 20 22:24:58 2001
|
|
@@ -12,6 +12,11 @@
|
|
/*@only@*/ /*@null@*/ static const char ** fsnames = NULL;
|
|
static int numFilesystems = 0;
|
|
|
|
+/* dummy getmntent() for FreeBSD */
|
|
+our_mntent *getmntent(FILE *filep) {
|
|
+ return NULL;
|
|
+}
|
|
+
|
|
void freeFilesystems(void)
|
|
{
|
|
if (filesystems) {
|
|
@@ -129,8 +134,10 @@
|
|
# if GETMNTENT_ONE || GETMNTENT_TWO
|
|
mtab = fopen(MOUNTED, "r");
|
|
if (!mtab) {
|
|
+/*
|
|
rpmError(RPMERR_MTAB, _("failed to open %s: %s"), MOUNTED,
|
|
strerror(errno));
|
|
+*/
|
|
return 1;
|
|
}
|
|
# elif HAVE_GETMNTINFO_R
|