diff options
author | jsorg71 <jsorg71> | 2010-02-22 21:17:31 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2010-02-22 21:17:31 +0000 |
commit | 530344462e57676bd77635c2e037b5757f53c58a (patch) | |
tree | 61500b5a861dd557e4b155332ec9182bcae8f040 | |
parent | 00ec87700b7ecdcfe52b6740c086019e12581a60 (diff) | |
download | xrdp-proprietary-530344462e57676bd77635c2e037b5757f53c58a.tar.gz xrdp-proprietary-530344462e57676bd77635c2e037b5757f53c58a.zip |
fixes for hppa
-rw-r--r-- | common/arch.h | 14 | ||||
-rw-r--r-- | common/os_calls.c | 4 |
2 files changed, 7 insertions, 11 deletions
diff --git a/common/arch.h b/common/arch.h index 18b3637f..5ac5e954 100644 --- a/common/arch.h +++ b/common/arch.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2004-2009 Jay Sorg + Copyright (c) 2004-2010 Jay Sorg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -24,25 +24,21 @@ #if !defined(ARCH_H) #define ARCH_H +#if !(defined(L_ENDIAN) || defined(B_ENDIAN)) /* check endianess */ -#if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) +#if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) || \ + defined(__hppa__) #define B_ENDIAN -#elif defined(__BYTE_ORDER) -#if __BYTE_ORDER == __LITTLE_ENDIAN -#define L_ENDIAN -#elif __BYTE_ORDER == __BIG_ENDIAN -#define B_ENDIAN -#endif #else #define L_ENDIAN #endif - /* check if we need to align data */ #if defined(__sparc__) || defined(__alpha__) || defined(__hppa__) || \ defined(__AIX__) || defined(__PPC__) || defined(__mips__) || \ defined(__ia64__) || defined(__ppc__) || defined(__arm__) #define NEED_ALIGN #endif +#endif /* defines for thread creation factory functions */ #if defined(_WIN32) diff --git a/common/os_calls.c b/common/os_calls.c index f530d002..ceb581d4 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2004-2009 Jay Sorg + Copyright (c) 2004-2010 Jay Sorg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -492,7 +492,7 @@ g_tcp_last_error_would_block(int sck) #if defined(_WIN32) return WSAGetLastError() == WSAEWOULDBLOCK; #else - return (errno == EWOULDBLOCK) || (errno == EINPROGRESS); + return (errno == EWOULDBLOCK) || (errno == EAGAIN) || (errno == EINPROGRESS); #endif } |