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"
#include "NameIO.h"
-#ifdef linux
+#ifdef __linux__
#include <sys/fsuid.h>
#endif
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 <time.h>
#include <unistd.h>
#include <utime.h>
-#ifdef linux
+#ifdef __linux__
#include <sys/fsuid.h>
#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 <cerrno>
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 <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#ifdef linux
+#ifdef __linux__
#include <sys/fsuid.h>
#endif
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 @@
*/
// defines needed for RedHat 7.3...
-#ifdef linux
+#ifdef __linux__
#define _XOPEN_SOURCE 500 // make sure pwrite() is pulled in
#endif
#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 <http://www.gnu.org/licenses/>.
*/
-#ifdef linux
+#ifdef __linux__
#define _XOPEN_SOURCE 500 // pick up pread , pwrite
#endif
#include "internal/easylogging++.h"