diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-05-24 03:28:49 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-05-24 03:28:49 +0300 |
commit | c2e70ccda674e1ebadc0c57da2104a42dd148e59 (patch) | |
tree | 4e857ca4055de402ba2bb6e1d71daf2c082bcbce /sal/osl/unx | |
parent | 302a098aa33873b4649818182213e508363b822b (diff) |
Add iOS
Diffstat (limited to 'sal/osl/unx')
-rw-r--r-- | sal/osl/unx/system.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h index 703ac608dd33..a8ce1ec65f4b 100644 --- a/sal/osl/unx/system.h +++ b/sal/osl/unx/system.h @@ -333,11 +333,42 @@ int macxp_resolveAlias(char *path, int buflen); #endif #endif +#ifdef IOS +# ifndef ETIME +# define ETIME ETIMEDOUT +# endif +# include <pthread.h> +# include <sys/file.h> +# include <sys/ioctl.h> +# include <sys/uio.h> +# include <sys/un.h> +# include <netinet/tcp.h> +# include <machine/endian.h> +# include <sys/time.h> +# include <sys/semaphore.h> +# if BYTE_ORDER == LITTLE_ENDIAN +# ifndef _LITTLE_ENDIAN +# define _LITTLE_ENDIAN +# endif +# elif BYTE_ORDER == BIG_ENDIAN +# ifndef _BIG_ENDIAN +# define _BIG_ENDIAN +# endif +# elif BYTE_ORDER == PDP_ENDIAN +# ifndef _PDP_ENDIAN +# define _PDP_ENDIAN +# endif +# endif +# define IOCHANNEL_TRANSFER_BSD_RENO +# define NO_PTHREAD_RTL +#endif + #if !defined(_WIN32) && \ !defined(LINUX) && !defined(NETBSD) && !defined(FREEBSD) && \ !defined(AIX) && \ !defined(SOLARIS) && !defined(MACOSX) && \ - !defined(OPENBSD) && !defined(DRAGONFLY) + !defined(OPENBSD) && !defined(DRAGONFLY) && \ + !defined(IOS) && !defined(ANDROID) # error "Target platform not specified!" #endif |