26 |
|
#endif |
27 |
|
|
28 |
|
#include "config.h" |
29 |
+ |
#include "user_strings_unix.h" |
30 |
|
|
31 |
|
#ifndef STDC_HEADERS |
32 |
|
#error "You don't have ANSI C header files." |
33 |
|
#endif |
34 |
|
|
35 |
< |
#include <sys/types.h> |
35 |
> |
#ifdef HAVE_UNISTD_H |
36 |
> |
# include <sys/types.h> |
37 |
> |
# include <unistd.h> |
38 |
> |
#endif |
39 |
> |
|
40 |
|
#include <netinet/in.h> |
41 |
|
#include <assert.h> |
42 |
|
#include <stdio.h> |
44 |
|
#include <string.h> |
45 |
|
#include <pthread.h> |
46 |
|
|
42 |
– |
#ifdef HAVE_UNISTD_H |
43 |
– |
# include <unistd.h> |
44 |
– |
#endif |
45 |
– |
|
47 |
|
#ifdef HAVE_FCNTL_H |
48 |
|
# include <fcntl.h> |
49 |
|
#endif |
107 |
|
typedef struct timeval tm_time_t; |
108 |
|
#endif |
109 |
|
|
110 |
+ |
/* Offset Mac->Unix time in seconds */ |
111 |
+ |
#define TIME_OFFSET 0x7c25b080 |
112 |
+ |
|
113 |
|
/* UAE CPU data types */ |
114 |
|
#define uae_s8 int8 |
115 |
|
#define uae_u8 uint8 |
120 |
|
typedef uae_u32 uaecptr; |
121 |
|
|
122 |
|
/* Alignment restrictions */ |
123 |
< |
#if defined(__i386__) || defined(__powerpc__) |
123 |
> |
#if defined(__i386__) || defined(__powerpc__) || defined(__m68k__) |
124 |
|
# define CPU_CAN_ACCESS_UNALIGNED |
125 |
|
#endif |
126 |
|
|