From 46fe2d512926bcbfea044d2bd09f288ca898e30c Mon Sep 17 00:00:00 2001 From: Vascom Date: Oct 03 2017 08:28:43 +0000 Subject: Update patch. --- diff --git a/0001-Replace-linux-define-with-more-standard-__linux__.patch b/0001-Replace-linux-define-with-more-standard-__linux__.patch index 58d2764..fbe3899 100644 --- a/0001-Replace-linux-define-with-more-standard-__linux__.patch +++ b/0001-Replace-linux-define-with-more-standard-__linux__.patch @@ -1,33 +1,6 @@ -From f5d37d2c6581e874c8d4aedfe8a09339b3f8b03d Mon Sep 17 00:00:00 2001 -From: Jakob Unterwurzacher -Date: Sun, 1 Oct 2017 19:04:30 +0200 -Subject: [PATCH] Replace "linux" define with more-standard "__linux__" - -The "linux" define is not available with "g++ -std=c++11", -which resulted in bug https://github.com/vgough/encfs/issues/398 . - -Available defines for gcc 7.1.1, g++ 7.1.7, clang 4.0.0: - -$ g++ -dM -E -x c++ /dev/null | grep linux - -$ g++ -dM -E -x c++ -std=c++11 /dev/null | grep linux - -$ echo "" | gcc -E -dM -c - | grep linux - -$ echo "" | clang -E - -dM | grep linux ---- - encfs/DirNode.cpp | 2 +- - encfs/FileNode.cpp | 2 +- - encfs/FileUtils.cpp | 2 +- - encfs/RawFileIO.cpp | 2 +- - encfs/encfs.cpp | 2 +- - encfs/encfs.h | 2 +- - 6 files changed, 6 insertions(+), 6 deletions(-) - -diff --git a/encfs/DirNode.cpp b/encfs/DirNode.cpp -index 8dc3335..00b60bf 100644 ---- a/encfs/DirNode.cpp -+++ b/encfs/DirNode.cpp +diff -uNdr encfs-1.9.2_orig/encfs/DirNode.cpp encfs-1.9.2_new/encfs/DirNode.cpp +--- encfs-1.9.2_orig/encfs/DirNode.cpp 2017-07-25 21:26:45.000000000 +0300 ++++ encfs-1.9.2_new/encfs/DirNode.cpp 2017-10-03 11:26:48.693038037 +0300 @@ -31,7 +31,7 @@ #include "FileNode.h" #include "FileUtils.h" @@ -37,10 +10,33 @@ index 8dc3335..00b60bf 100644 #include #endif -diff --git a/encfs/FileNode.cpp b/encfs/FileNode.cpp -index 7486720..64ae8af 100644 ---- a/encfs/FileNode.cpp -+++ b/encfs/FileNode.cpp +diff -uNdr encfs-1.9.2_orig/encfs/encfs.cpp encfs-1.9.2_new/encfs/encfs.cpp +--- encfs-1.9.2_orig/encfs/encfs.cpp 2017-07-25 21:26:45.000000000 +0300 ++++ encfs-1.9.2_new/encfs/encfs.cpp 2017-10-03 11:26:48.843041887 +0300 +@@ -31,7 +31,7 @@ + #include + #include + #include +-#ifdef linux ++#ifdef __linux__ + #include + #endif + +diff -uNdr encfs-1.9.2_orig/encfs/encfs.h encfs-1.9.2_new/encfs/encfs.h +--- encfs-1.9.2_orig/encfs/encfs.h 2017-07-25 21:26:45.000000000 +0300 ++++ encfs-1.9.2_new/encfs/encfs.h 2017-10-03 11:26:48.904043452 +0300 +@@ -34,7 +34,7 @@ + #define HAVE_XATTR + #endif + +-#ifndef linux ++#ifndef __linux__ + #include + + static __inline int setfsuid(uid_t uid) { +diff -uNdr encfs-1.9.2_orig/encfs/FileNode.cpp encfs-1.9.2_new/encfs/FileNode.cpp +--- encfs-1.9.2_orig/encfs/FileNode.cpp 2017-07-25 21:26:45.000000000 +0300 ++++ encfs-1.9.2_new/encfs/FileNode.cpp 2017-10-03 11:26:48.732039038 +0300 @@ -24,7 +24,7 @@ #include #include @@ -50,10 +46,9 @@ index 7486720..64ae8af 100644 #include #endif -diff --git a/encfs/FileUtils.cpp b/encfs/FileUtils.cpp -index 444b2e8..c477786 100644 ---- a/encfs/FileUtils.cpp -+++ b/encfs/FileUtils.cpp +diff -uNdr encfs-1.9.2_orig/encfs/FileUtils.cpp encfs-1.9.2_new/encfs/FileUtils.cpp +--- encfs-1.9.2_orig/encfs/FileUtils.cpp 2017-07-25 21:26:45.000000000 +0300 ++++ encfs-1.9.2_new/encfs/FileUtils.cpp 2017-10-03 11:26:48.767039936 +0300 @@ -19,7 +19,7 @@ */ @@ -62,11 +57,10 @@ index 444b2e8..c477786 100644 +#ifdef __linux__ #define _XOPEN_SOURCE 500 // make sure pwrite() is pulled in #endif - #define _BSD_SOURCE // pick up setenv on RH7.3 -diff --git a/encfs/RawFileIO.cpp b/encfs/RawFileIO.cpp -index 6f722c9..7cab3dd 100644 ---- a/encfs/RawFileIO.cpp -+++ b/encfs/RawFileIO.cpp + #define _BSD_SOURCE // pick up setenv on RH7.3 +diff -uNdr encfs-1.9.2_orig/encfs/RawFileIO.cpp encfs-1.9.2_new/encfs/RawFileIO.cpp +--- encfs-1.9.2_orig/encfs/RawFileIO.cpp 2017-07-25 21:26:45.000000000 +0300 ++++ encfs-1.9.2_new/encfs/RawFileIO.cpp 2017-10-03 11:26:48.809041014 +0300 @@ -18,7 +18,7 @@ * along with this program. If not, see . */ @@ -75,33 +69,4 @@ index 6f722c9..7cab3dd 100644 +#ifdef __linux__ #define _XOPEN_SOURCE 500 // pick up pread , pwrite #endif - #include "easylogging++.h" -diff --git a/encfs/encfs.cpp b/encfs/encfs.cpp -index 721c28a..99fad32 100644 ---- a/encfs/encfs.cpp -+++ b/encfs/encfs.cpp -@@ -32,7 +32,7 @@ - #include - #include - #include --#ifdef linux -+#ifdef __linux__ - #include - #endif - -diff --git a/encfs/encfs.h b/encfs/encfs.h -index 0d6b7d1..28b7709 100644 ---- a/encfs/encfs.h -+++ b/encfs/encfs.h -@@ -34,7 +34,7 @@ namespace encfs { - #define HAVE_XATTR - #endif - --#ifndef linux -+#ifndef __linux__ - #include - - static __inline int setfsuid(uid_t uid) { --- -2.13.6 - + #include "internal/easylogging++.h"