1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Undefine SVR4 whilst including #include <X11/Xos_r.h> to prevent sys/byteorder.h

missing header error.
This commit is contained in:
Peter Howkins 2012-03-11 16:14:04 +00:00
parent bcfc468cdc
commit b2b6d0d386
2 changed files with 13 additions and 0 deletions

View file

@ -32,7 +32,14 @@
#define X_INCLUDE_TIME_H #define X_INCLUDE_TIME_H
#define XOS_USE_NO_LOCKING #define XOS_USE_NO_LOCKING
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h> #include <X11/Xos_r.h>
#if defined(linux)
#define SVR4
#endif
#include <syslog.h> #include <syslog.h>

View file

@ -41,7 +41,13 @@
#endif #endif
#define X_INCLUDE_PWD_H #define X_INCLUDE_PWD_H
#define XOS_USE_XT_LOCKING #define XOS_USE_XT_LOCKING
#if defined(linux)
#undef SVR4
#endif
#include <X11/Xos_r.h> #include <X11/Xos_r.h>
#if defined(linux)
#define SVR4
#endif
extern char * strdup(const char *); extern char * strdup(const char *);