comparison compat.h @ 1326:03f0a57c9e87

Make sure socklen_t gets defined when building with Visual Studio.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 09 Nov 2011 10:34:58 +0000
parents 032037c378ef
children be2c04276209
comparison
equal deleted inserted replaced
1325:552da4dea7d1 1326:03f0a57c9e87
318 sockclose(tmpsock); \ 318 sockclose(tmpsock); \
319 } \ 319 } \
320 } 320 }
321 #endif 321 #endif
322 322
323 /* Visual Studio doesn't define this... so just in case */
324 #ifndef socklen_t
325 typedef int socklen_t;
326 #endif
327
323 #define socksprint(a, b) sockwrite(a, b, strlen(b), 0) 328 #define socksprint(a, b) sockwrite(a, b, strlen(b), 0)
324 329
325 char * API vargs(char *buf, int len, char *format, ...); 330 char * API vargs(char *buf, int len, char *format, ...);
326 int API makedir(char *path); 331 int API makedir(char *path);
327 void API setfileinfo(char *filename, char *url, char *logfile); 332 void API setfileinfo(char *filename, char *url, char *logfile);