diff --git a/net/rpdutils/src/daemon.cxx b/net/rpdutils/src/daemon.cxx index a3f65fae4459312c565d25ea98dc1c5771e78a7c..9bdb4294a5154fbc74be452c52bcbc951b42915c 100644 --- a/net/rpdutils/src/daemon.cxx +++ b/net/rpdutils/src/daemon.cxx @@ -28,8 +28,8 @@ # include <fcntl.h> #endif -#ifdef __linux__ -#define linux +#if defined(__linux__) && !defined(linux) +# define linux #endif #ifdef SIGTSTP diff --git a/net/rpdutils/src/rpdutils.cxx b/net/rpdutils/src/rpdutils.cxx index a5540d159a133c0a0444548b62c0ad1ea8ab7862..63dd31a9f61ca150bbf276a9619ac1f7b9ba4666 100644 --- a/net/rpdutils/src/rpdutils.cxx +++ b/net/rpdutils/src/rpdutils.cxx @@ -43,8 +43,8 @@ # define cygwingcc #endif -#ifdef __linux__ -#define linux +#if defined(__linux__) && !defined(linux) +# define linux #endif #if defined(linux) || defined(__sun) || defined(__sgi) || \