diff options
| author | maya <maya@pkgsrc.org> | 2017-06-19 18:41:39 +0000 |
|---|---|---|
| committer | maya <maya@pkgsrc.org> | 2017-06-19 18:41:39 +0000 |
| commit | 1179fc9d075601d9fa1aebb57ba96c614427b43e (patch) | |
| tree | 5053eef6646b3820ecdb06ddda7a4a40a22cf06f /filesystems/fuse-encfs/patches/patch-encfs_DirNode.cpp | |
| parent | 7c682abe74c539ab338acac481872aab7b989bee (diff) | |
| download | pkgsrc-1179fc9d075601d9fa1aebb57ba96c614427b43e.tar.gz | |
fuse-encfs: update to 1.9.1
A decade of changes, please refer to the following link for changes:
https://github.com/vgough/encfs/blob/bf2cee54f53fc53910476fcd497782f3fd062923/ChangeLog
Diffstat (limited to 'filesystems/fuse-encfs/patches/patch-encfs_DirNode.cpp')
| -rw-r--r-- | filesystems/fuse-encfs/patches/patch-encfs_DirNode.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/filesystems/fuse-encfs/patches/patch-encfs_DirNode.cpp b/filesystems/fuse-encfs/patches/patch-encfs_DirNode.cpp new file mode 100644 index 00000000000..b5b65057d77 --- /dev/null +++ b/filesystems/fuse-encfs/patches/patch-encfs_DirNode.cpp @@ -0,0 +1,27 @@ +$NetBSD: patch-encfs_DirNode.cpp,v 1.1 2017/06/19 18:41:39 maya Exp $ + +Define _DIRENT_HAVE_D_TYPE at the top for all the OSes that support +it. This is an untested functional change for FreeBSD and APPLE. + +--- encfs/DirNode.cpp.orig 2016-09-18 20:16:04.000000000 +0000 ++++ encfs/DirNode.cpp +@@ -42,6 +42,10 @@ + #include "Error.h" + #include "Mutex.h" + ++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) ++#define _DIRENT_HAVE_D_TYPE ++#endif ++ + using namespace std; + + namespace encfs { +@@ -78,7 +82,7 @@ static bool _nextName(struct dirent *&de + + if (de) { + if (fileType) { +-#if defined(_DIRENT_HAVE_D_TYPE) || defined(__FreeBSD__) || defined(__APPLE__) ++#if defined(_DIRENT_HAVE_D_TYPE) + *fileType = de->d_type; + #else + #warning "struct dirent.d_type not supported" |
