comparison compat.h @ 24:d9e87e8bcf1d

Updated dynamic windows to build with EMX.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 17 Aug 2001 11:44:05 +0000
parents 67a643a734d9
children cd715f9036c0
comparison
equal deleted inserted replaced
23:2932f9d2c7d5 24:d9e87e8bcf1d
53 #define INCL_DOSERRORS 53 #define INCL_DOSERRORS
54 54
55 #define msleep(a) DosSleep(a) 55 #define msleep(a) DosSleep(a)
56 56
57 #ifdef __EMX__ 57 #ifdef __EMX__
58 #include <dirent.h>
59 #include <sys/stat.h>
60 #ifdef FD_SETSIZE
61 #undef FD_SETSIZE
62 #endif
58 #define FD_SETSIZE 1024 63 #define FD_SETSIZE 1024
59 #define strcasecmp stricmp 64 #define strcasecmp stricmp
60 #define strncasecmp strnicmp 65 #define strncasecmp strnicmp
61 #endif /* __EMX__ */ 66 #endif /* __EMX__ */
62 67
86 #include <sys/select.h> 91 #include <sys/select.h>
87 #include <sys/ioctl.h> 92 #include <sys/ioctl.h>
88 #include <direct.h> 93 #include <direct.h>
89 #include <stdarg.h> 94 #include <stdarg.h>
90 /* For VAC we are using the Mozilla dirent.c */ 95 /* For VAC we are using the Mozilla dirent.c */
91 #include "dirent.h" 96 #include "platform/dirent.h"
92 #endif 97 #endif
93 98
94 /* Windows */ 99 /* Windows */
95 #if defined(__WIN32__) || defined(WINNT) 100 #if defined(__WIN32__) || defined(WINNT)
96 #include <windows.h> 101 #include <windows.h>
97 #include <winsock.h> 102 #include <winsock.h>
98 #include <time.h> 103 #include <time.h>
99 #include <process.h> 104 #include <process.h>
100 #include <sys/stat.h> 105 #include <sys/stat.h>
101 #ifdef MSVC 106 #ifdef MSVC
102 #include "dirent.h" 107 #include "platform/dirent.h"
103 #else 108 #else
104 #include <dir.h> 109 #include <dir.h>
105 #include <dirent.h> 110 #include <dirent.h>
106 #endif 111 #endif
107 #include <stdarg.h> 112 #include <stdarg.h>
143 #include <sys/un.h> 148 #include <sys/un.h>
144 #include <netinet/in.h> 149 #include <netinet/in.h>
145 #include <netdb.h> 150 #include <netdb.h>
146 #include <arpa/nameser.h> 151 #include <arpa/nameser.h>
147 #include <resolv.h> 152 #include <resolv.h>
148 #ifdef STDC_HEADERS 153 #if defined(STDC_HEADERS) || defined(__EMX__)
149 #include <stdarg.h> 154 #include <stdarg.h>
150 #include <string.h> 155 #include <string.h>
151 #endif /* STDC_HEADERS */ 156 #endif /* STDC_HEADERS */
152 #endif /* !WIN32 */ 157 #endif /* !WIN32 */
153 158
189 #endif 194 #endif
190 int isdrive(int drive); 195 int isdrive(int drive);
191 FILE *fsopen(char *path, char *modes); 196 FILE *fsopen(char *path, char *modes);
192 int fsclose(FILE *fp); 197 int fsclose(FILE *fp);
193 char *fsgets(char *str, int size, FILE *stream); 198 char *fsgets(char *str, int size, FILE *stream);
194 199 int fsseek(FILE *stream, long offset, int whence);
200