Undefine SVR4 whilst including #include <X11/Xos_r.h> to prevent sys/byteorder.h
missing header error.
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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 *);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user