summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getvfsent.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-01-20 10:36:24 +0000
committerbde <bde@FreeBSD.org>1998-01-20 10:36:24 +0000
commit8da50425fb2dac4ba5614877a685ae96d1c53c3d (patch)
treeac72ab86a720eba597ca0a05e2c8412308cff7cf /lib/libc/gen/getvfsent.c
parentd49fde64e88ed0930d98ea5752325d23d452a74c (diff)
downloadFreeBSD-src-8da50425fb2dac4ba5614877a685ae96d1c53c3d.zip
FreeBSD-src-8da50425fb2dac4ba5614877a685ae96d1c53c3d.tar.gz
Moved most of the (source-level) compatibility hacks for the vfsconf
interface from sys/mount.h to libc/getvfsent.c The new interface is now the default.
Diffstat (limited to 'lib/libc/gen/getvfsent.c')
-rw-r--r--lib/libc/gen/getvfsent.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/gen/getvfsent.c b/lib/libc/gen/getvfsent.c
index d7a8633..469ef97 100644
--- a/lib/libc/gen/getvfsent.c
+++ b/lib/libc/gen/getvfsent.c
@@ -4,8 +4,6 @@
* This file is in the public domain.
*/
-#define _OLD_VFSCONF
-
#include <sys/param.h>
#include <sys/types.h>
#include <sys/mount.h>
@@ -19,6 +17,10 @@
#include <errno.h>
#include <paths.h>
+/* XXX hide some compatibility problems. */
+#undef getvfsbyname
+#define vfsconf ovfsconf
+
#define _PATH_MODLOAD "/sbin/modload" /* XXX should be in header file */
static struct vfsconf *_vfslist = 0;
OpenPOWER on IntegriCloud