aboutsummaryrefslogtreecommitdiffstats
path: root/main/ufsutils/uclibc-no-fstab.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2014-03-24 02:12:11 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2014-03-24 02:12:47 +0000
commitd430b613f65090cb75312c3202a1eebf53613ab8 (patch)
treea7e0fb8530d18fe49c48a55d9f0d986526324f68 /main/ufsutils/uclibc-no-fstab.patch
parentd618adcce3009ce9fb0a4b8eb54868bf8eafe79d (diff)
downloadaports-d430b613f65090cb75312c3202a1eebf53613ab8.tar.bz2
aports-d430b613f65090cb75312c3202a1eebf53613ab8.tar.xz
main/ufsprogs: some work on musl
Diffstat (limited to 'main/ufsutils/uclibc-no-fstab.patch')
-rw-r--r--main/ufsutils/uclibc-no-fstab.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/main/ufsutils/uclibc-no-fstab.patch b/main/ufsutils/uclibc-no-fstab.patch
index a96a255798..73f8338745 100644
--- a/main/ufsutils/uclibc-no-fstab.patch
+++ b/main/ufsutils/uclibc-no-fstab.patch
@@ -5,7 +5,7 @@
#include <errno.h>
#include <fcntl.h>
-#include <fstab.h>
-+#ifndef __UCLIBC__
++#if 0
+# include <fstab.h>
+#endif
#include <paths.h>
@@ -15,7 +15,7 @@
ufs_disk_fillout_blank(struct uufsd *disk, const char *name)
{
struct stat st;
-+#ifndef __UCLIBC__
++#if 0
struct fstab *fs;
+#endif
struct statfs sfs;
@@ -25,7 +25,7 @@
} else if (ret >= 0 && (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode))) {
/* This is what we need, do nothing. */
;
-+#ifndef __UCLIBC__
++#if 0
} else if ((fs = getfsfile(name)) != NULL) {
/*
* The given mount point is listed in /etc/fstab.
@@ -64,7 +64,7 @@
#include <err.h>
#include <errno.h>
-#include <fstab.h>
-+#ifndef __UCLIBC__
++#if 0
+# include <fstab.h>
+#endif
#include <grp.h>
@@ -77,7 +77,7 @@
#include <string.h>
#include <ctype.h>
-#include <fstab.h>
-+#ifndef __UCLIBC__
++#if 0
+# include <fstab.h>
+#endif
#include <paths.h>
@@ -87,7 +87,7 @@
{
struct stat stblock;
char *newname, *cp;
-+#ifndef __UCLIBC__
++#if 0
struct fstab *fsinfo;
+#endif
int retried = 0, len;
@@ -97,7 +97,7 @@
if (len > 0 && origname[len] == '/')
/* remove trailing slash */
origname[len] = '\0';
-+#ifndef __UCLIBC__
++#if 0
if ((fsinfo = getfsfile(origname)) == NULL) {
printf(
"Can't resolve %s to character special device.\n",