summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-11-02 16:49:49 +0100
committerMax Kellermann <max@musicpd.org>2018-11-02 16:50:38 +0100
commitbba22c9c8cbdff50642e72c9af0bc4bf86567583 (patch)
tree627eb0965140a5b8bc673fd7255d88cf9b054420 /src/system
parent694c437a2ca09e9b23af599b3077a4c3625a0aae (diff)
system/FileDescriptor: check `__linux__` instead of `__linux`
`__linux` is the deprecated non-standard macros which appears to be not present at all on PowerPC. Closes #398
Diffstat (limited to 'src/system')
-rw-r--r--src/system/FileDescriptor.cxx2
-rw-r--r--src/system/FileDescriptor.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/system/FileDescriptor.cxx b/src/system/FileDescriptor.cxx
index f2516b872..719812294 100644
--- a/src/system/FileDescriptor.cxx
+++ b/src/system/FileDescriptor.cxx
@@ -76,7 +76,7 @@ FileDescriptor::IsSocket() const noexcept
#endif
-#ifdef __linux
+#ifdef __linux__
bool
FileDescriptor::Open(FileDescriptor dir, const char *pathname,
diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx
index e3176df60..08d11cc43 100644
--- a/src/system/FileDescriptor.hxx
+++ b/src/system/FileDescriptor.hxx
@@ -116,7 +116,7 @@ public:
return FileDescriptor(-1);
}
-#ifdef __linux
+#ifdef __linux__
bool Open(FileDescriptor dir, const char *pathname,
int flags, mode_t mode=0666) noexcept;
#endif