1 |
|
/* |
2 |
|
* sysdeps.h - System dependent definitions for Unix |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2002 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
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 |
107 |
|
/* ExtFS is supported */ |
108 |
|
#define SUPPORTS_EXTFS 1 |
109 |
|
|
110 |
+ |
/* BSD socket API supported */ |
111 |
+ |
#define SUPPORTS_UDP_TUNNEL 1 |
112 |
+ |
|
113 |
|
|
114 |
|
/* Data types */ |
115 |
|
typedef unsigned char uint8; |
162 |
|
typedef struct timeval tm_time_t; |
163 |
|
#endif |
164 |
|
|
165 |
< |
/* Offset Mac->Unix time in seconds */ |
166 |
< |
#define TIME_OFFSET 0x7c25b080 |
165 |
> |
/* Define codes for all the float formats that we know of. |
166 |
> |
* Though we only handle IEEE format. */ |
167 |
> |
#define UNKNOWN_FLOAT_FORMAT 0 |
168 |
> |
#define IEEE_FLOAT_FORMAT 1 |
169 |
> |
#define VAX_FLOAT_FORMAT 2 |
170 |
> |
#define IBM_FLOAT_FORMAT 3 |
171 |
> |
#define C4X_FLOAT_FORMAT 4 |
172 |
|
|
173 |
|
/* UAE CPU data types */ |
174 |
|
#define uae_s8 int8 |
190 |
|
extern uint64 GetTicks_usec(void); |
191 |
|
extern void Delay_usec(uint32 usec); |
192 |
|
|
193 |
+ |
#ifdef HAVE_PTHREADS |
194 |
+ |
/* Centralized pthread attribute setup */ |
195 |
+ |
void Set_pthread_attr(pthread_attr_t *attr, int priority); |
196 |
+ |
#endif |
197 |
+ |
|
198 |
|
/* UAE CPU defines */ |
199 |
|
#ifdef WORDS_BIGENDIAN |
200 |
|
|
305 |
|
#define ENUMDECL typedef enum |
306 |
|
#define ENUMNAME(name) name |
307 |
|
#define write_log printf |
291 |
– |
#undef USE_MAPPED_MEMORY |
292 |
– |
#undef CAN_MAP_MEMORY |
308 |
|
|
309 |
|
#ifdef X86_ASSEMBLY |
310 |
|
#define ASM_SYM_FOR_FUNC(a) __asm__(a) |