summaryrefslogtreecommitdiff
path: root/editors/openoffice.org-1.1-devel/files/patch-sal::osl::unx::file.c
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-10-18 22:41:42 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-10-18 22:41:42 +0000
commit5f6e7f6949fe1fba17b53a04af5b465f19b9b17d (patch)
tree336b116c7090225344e575c81b023f12aef39c5b /editors/openoffice.org-1.1-devel/files/patch-sal::osl::unx::file.c
parent* add 2 missing man pages (diff)
First step to make this port working. Configure works and all patches
apply now. There are still some compile errors to fix. As you may see the patchnames are very long, but that makes maintaining patches a lot easier.
Notes
Notes: svn path=/head/; revision=68299
Diffstat (limited to 'editors/openoffice.org-1.1-devel/files/patch-sal::osl::unx::file.c')
-rw-r--r--editors/openoffice.org-1.1-devel/files/patch-sal::osl::unx::file.c73
1 files changed, 0 insertions, 73 deletions
diff --git a/editors/openoffice.org-1.1-devel/files/patch-sal::osl::unx::file.c b/editors/openoffice.org-1.1-devel/files/patch-sal::osl::unx::file.c
deleted file mode 100644
index ade5f14b7946..000000000000
--- a/editors/openoffice.org-1.1-devel/files/patch-sal::osl::unx::file.c
+++ /dev/null
@@ -1,73 +0,0 @@
---- ../sal/osl/unx/file.c.orig Thu Oct 4 15:09:21 2001
-+++ ../sal/osl/unx/file.c
-@@ -123,11 +123,16 @@
- #include <ctype.h>
- static const sal_Char* MOUNTTAB="/etc/mtab";
-
--#elif defined(NETBSD)
-+#elif defined(NETBSD) || defined(FREEBSD)
-+#include <sys/param.h>
-+#include <sys/ucred.h>
- #include <sys/mount.h>
- #include <ufs/ufs/quota.h>
- #include <ctype.h>
--static const sal_Char* MOUNTTAB="/etc/mtab";
-+#define HAVE_STATFS_H
-+/* No mounting table on *BSD
-+ * This information is stored only in the kernel. */
-+/* static const sal_Char* MOUNTTAB="/etc/mtab"; */
-
- #elif defined(IRIX)
- #include <mntent.h>
-@@ -137,7 +142,7 @@
- #include <ctype.h>
- static const sal_Char* MOUNTTAB="/etc/mtab";
-
--#elif defined(MACOSX) || defined(FREEBSD)
-+#elif defined(MACOSX)
- #include <ufs/ufs/quota.h>
- #include <ctype.h>
- static const sal_Char* MOUNTTAB="/etc/mtab";
-@@ -4224,10 +4229,20 @@
- mntfile = fopen(MOUNTTAB,"r");
- #endif /* SOLARIS */
-
-+#if defined(NETBSD) || defined(FREEBSD)
-+ struct statfs *mntbufp;
-+ int mntentries,i;
-+ mntentries = getmntinfo(&mntbufp,MNT_WAIT);
-
- buffer[0] = '\0';
-
-+ if(mntentries == 0)
-+#else
-+
-+ buffer[0] = '\0';
-+
- if ( mntfile == 0 )
-+#endif
- {
- nRet=errno;
- #ifdef DEBUG_OSL_FILE
-@@ -4286,7 +4301,21 @@
- }
- #endif /* SOLARIS */
-
-+#if defined(NETBSD) || defined(FREEBSD)
-+ i=0;
-+ while ( i < mntentries )
-+ {
-+ if ( strcmp(mntbufp[i].f_mntonname,buffer) == 0 )
-+ {
-+ *bMountPoint=sal_True;
-+ return osl_File_E_None;
-+ }
-+ i++;
-+ }
-+#endif
-+#if ! ( defined(NETBSD) || defined(FREEBSD) )
- fclose(mntfile);
-+#endif
- *bMountPoint=sal_False;
- return osl_File_E_None;
- }