From b2b6d0d38677e7d248b3f0950a10b5b67949926b Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sun, 11 Mar 2012 16:14:04 +0000 Subject: [PATCH] Undefine SVR4 whilst including #include to prevent sys/byteorder.h missing header error. --- cde/lib/csa/debug.c | 7 +++++++ cde/lib/csa/lutil.c | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/cde/lib/csa/debug.c b/cde/lib/csa/debug.c index 07ce1814..0a313146 100644 --- a/cde/lib/csa/debug.c +++ b/cde/lib/csa/debug.c @@ -32,7 +32,14 @@ #define X_INCLUDE_TIME_H #define XOS_USE_NO_LOCKING + +#if defined(linux) +#undef SVR4 +#endif #include +#if defined(linux) +#define SVR4 +#endif #include diff --git a/cde/lib/csa/lutil.c b/cde/lib/csa/lutil.c index 99657aca..a5faff9f 100644 --- a/cde/lib/csa/lutil.c +++ b/cde/lib/csa/lutil.c @@ -41,7 +41,13 @@ #endif #define X_INCLUDE_PWD_H #define XOS_USE_XT_LOCKING +#if defined(linux) +#undef SVR4 +#endif #include +#if defined(linux) +#define SVR4 +#endif extern char * strdup(const char *); -- 2.25.1