summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
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