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.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.6 by cebix, 1999-10-21T22:40:03Z

# Line 26 | Line 26
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>
# Line 39 | Line 44
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
# Line 68 | Line 69
69   /* Is the Mac ROM write protected? */
70   #define ROM_IS_WRITE_PROTECTED 1
71  
72 + /* ExtFS is supported */
73 + #define SUPPORTS_EXTFS 1
74 +
75   /* Data types */
76   typedef unsigned char uint8;
77   typedef signed char int8;
# Line 106 | Line 110 | typedef struct timespec tm_time_t;
110   typedef struct timeval tm_time_t;
111   #endif
112  
113 + /* Offset Mac->Unix time in seconds */
114 + #define TIME_OFFSET 0x7c25b080
115 +
116   /* UAE CPU data types */
117   #define uae_s8 int8
118   #define uae_u8 uint8
# Line 116 | Line 123 | typedef struct timeval tm_time_t;
123   typedef uae_u32 uaecptr;
124  
125   /* Alignment restrictions */
126 < #if defined(__i386__) || defined(__powerpc__)
126 > #if defined(__i386__) || defined(__powerpc__) || defined(__m68k__)
127   # define CPU_CAN_ACCESS_UNALIGNED
128   #endif
129  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines