--- sourceforge.net/trunk/rdesktop/rdesktop.h 2004/01/21 11:08:39 567 +++ sourceforge.net/trunk/rdesktop/rdesktop.h 2004/11/06 17:27:45 799 @@ -21,6 +21,14 @@ #include #include #include +#include +#include +#ifdef HAVE_SYS_SELECT_H +#include +#else +#include +#include +#endif #define VERSION "1.3.1" @@ -49,13 +57,27 @@ #endif #define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } + #ifndef MIN #define MIN(x,y) (((x) < (y)) ? (x) : (y)) #endif + #ifndef MAX #define MAX(x,y) (((x) > (y)) ? (x) : (y)) #endif +/* If configure does not define the endianess, try + to find it out */ +#if !defined(L_ENDIAN) && !defined(B_ENDIAN) +#if __BYTE_ORDER == __LITTLE_ENDIAN +#define L_ENDIAN +#elif __BYTE_ORDER == __BIG_ENDIAN +#define B_ENDIAN +#else +#error Unknown endianness. Edit rdesktop.h. +#endif +#endif /* B_ENDIAN, L_ENDIAN from configure */ + #include "parse.h" #include "constants.h" #include "types.h"