ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/sysdeps.h
(Generate patch)

Comparing BasiliskII/src/Unix/sysdeps.h (file contents):
Revision 1.23 by gbeauche, 2002-09-16T12:03:07Z vs.
Revision 1.27 by nigel, 2003-11-18T11:14:43Z

# Line 43 | Line 43
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
# Line 151 | Line 155 | typedef int64 intptr;
155   #error "Unsupported size of pointer"
156   #endif
157  
158 + #ifndef HAVE_LOFF_T
159 +   typedef off_t loff_t;
160 + #endif
161 +
162   /* Time data type for Time Manager emulation */
163   #ifdef HAVE_CLOCK_GETTIME
164   typedef struct timespec tm_time_t;
# Line 178 | Line 186 | typedef struct timeval tm_time_t;
186   typedef uae_u32 uaecptr;
187  
188   /* Alignment restrictions */
189 < #if defined(__i386__) || defined(__powerpc__) || defined(__m68k__)
189 > #if defined(__i386__) || defined(__powerpc__) || defined(__m68k__) || defined(__x86_64__)
190   # define CPU_CAN_ACCESS_UNALIGNED
191   #endif
192  
# Line 231 | Line 239 | static inline void do_put_mem_word(uae_u
239  
240   #else /* WORDS_BIGENDIAN */
241  
242 < #ifdef __i386__
242 > #if defined(__i386__) || defined(__x86_64__)
243  
244   /* Intel x86 */
245   #define X86_PPRO_OPT
# Line 302 | Line 310 | static inline uae_u32 do_byteswap_16(uae
310   #define ENUMNAME(name) name
311   #define write_log printf
312  
313 < #ifdef X86_ASSEMBLY
313 > #if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY)
314   #define ASM_SYM_FOR_FUNC(a) __asm__(a)
315   #else
316   #define ASM_SYM_FOR_FUNC(a)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines