43 |
|
#include <stdlib.h> |
44 |
|
#include <string.h> |
45 |
|
|
46 |
+ |
#ifdef HAVE_PTHREADS |
47 |
+ |
# include <pthread.h> |
48 |
+ |
#endif |
49 |
+ |
|
50 |
|
#ifdef HAVE_FCNTL_H |
51 |
|
# include <fcntl.h> |
52 |
|
#endif |
155 |
|
#error "Unsupported size of pointer" |
156 |
|
#endif |
157 |
|
|
158 |
+ |
#ifndef HAVE_LOFF_T |
159 |
+ |
typedef off_t loff_t; |
160 |
+ |
#endif |
161 |
+ |
#ifndef HAVE_CADDR_T |
162 |
+ |
typedef char * caddr_t; |
163 |
+ |
#endif |
164 |
+ |
|
165 |
|
/* Time data type for Time Manager emulation */ |
166 |
|
#ifdef HAVE_CLOCK_GETTIME |
167 |
|
typedef struct timespec tm_time_t; |
189 |
|
typedef uae_u32 uaecptr; |
190 |
|
|
191 |
|
/* Alignment restrictions */ |
192 |
< |
#if defined(__i386__) || defined(__powerpc__) || defined(__m68k__) |
192 |
> |
#if defined(__i386__) || defined(__powerpc__) || defined(__m68k__) || defined(__x86_64__) |
193 |
|
# define CPU_CAN_ACCESS_UNALIGNED |
194 |
|
#endif |
195 |
|
|
242 |
|
|
243 |
|
#else /* WORDS_BIGENDIAN */ |
244 |
|
|
245 |
< |
#ifdef __i386__ |
245 |
> |
#if defined(__i386__) || defined(__x86_64__) |
246 |
|
|
247 |
|
/* Intel x86 */ |
248 |
|
#define X86_PPRO_OPT |
313 |
|
#define ENUMNAME(name) name |
314 |
|
#define write_log printf |
315 |
|
|
316 |
< |
#ifdef X86_ASSEMBLY |
316 |
> |
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY) |
317 |
|
#define ASM_SYM_FOR_FUNC(a) __asm__(a) |
318 |
|
#else |
319 |
|
#define ASM_SYM_FOR_FUNC(a) |