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
This commit is contained in:
Max Kellermann
2018-11-02 16:49:49 +01:00
parent 694c437a2c
commit bba22c9c8c
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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