From 03e71da18c170ea36fe7ea52286261260fc8c37b Mon Sep 17 00:00:00 2001
From: Vassil Vassilev <vvasilev@cern.ch>
Date: Wed, 12 Nov 2014 10:26:13 +0100
Subject: [PATCH] [modules] linux macro is not seen, when compiling with
 -fmodules.

---
 net/rpdutils/src/daemon.cxx   | 4 ++++
 net/rpdutils/src/rpdutils.cxx | 4 ++++
 proof/proofd/src/proofd.cxx   | 3 +++
 3 files changed, 11 insertions(+)

diff --git a/net/rpdutils/src/daemon.cxx b/net/rpdutils/src/daemon.cxx
index 54d00140817..8411800668d 100644
--- a/net/rpdutils/src/daemon.cxx
+++ b/net/rpdutils/src/daemon.cxx
@@ -28,6 +28,10 @@
 #  include <fcntl.h>
 #endif
 
+#ifdef __linux__
+#define linux
+#endif
+
 #ifdef SIGTSTP
 #include <sys/file.h>
 #include <sys/ioctl.h>
diff --git a/net/rpdutils/src/rpdutils.cxx b/net/rpdutils/src/rpdutils.cxx
index b16a5b860bc..946d6ed9fa4 100644
--- a/net/rpdutils/src/rpdutils.cxx
+++ b/net/rpdutils/src/rpdutils.cxx
@@ -42,6 +42,10 @@
 #   define cygwingcc
 #endif
 
+#ifdef __linux__
+#define linux
+#endif
+
 #if defined(linux) || defined(__sun) || defined(__sgi) || \
     defined(_AIX) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
     defined(__APPLE__) || defined(__MACH__) || defined(cygwingcc)
diff --git a/proof/proofd/src/proofd.cxx b/proof/proofd/src/proofd.cxx
index a2c014259e0..f4ed377cc8a 100644
--- a/proof/proofd/src/proofd.cxx
+++ b/proof/proofd/src/proofd.cxx
@@ -181,6 +181,9 @@
 #if defined(__CYGWIN__) && defined(__GNUC__)
 #   define cygwingcc
 #endif
+#ifdef __linux__
+#define linux
+#endif
 #if defined(linux) || defined(__sun) || defined(__sgi) || \
     defined(_AIX) || defined(__FreeBSD__) || defined(__APPLE__) || \
     defined(__MACH__) || defined(cygwingcc) || defined(__OpenBSD__)
-- 
GitLab