summaryrefslogtreecommitdiff
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
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
-rw-r--r--NEWS1
-rw-r--r--src/system/FileDescriptor.cxx2
-rw-r--r--src/system/FileDescriptor.hxx2
3 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 1ba1e0495..33042d8a7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
ver 0.21.1 (not yet released)
* decoder
- ffmpeg: fix build failure with non-standard FFmpeg installation path
+* fix build failure on Linux-PowerPC
ver 0.21 (2018/10/31)
* configuration
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