Overview
SHA1 Hash: | df97fae2bd9f248be088a57f67fd6c46c635c357 |
---|---|
Date: | 2009-08-29 17:01:33 |
User: | drh |
Comment: | Patches to get Fossil working on OS/2. Ticket |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/cgi.c from [8b6978d8ea] to [00c26fc349].
@@ -39,10 +39,13 @@ # include <arpa/inet.h> # include <sys/times.h> # include <sys/time.h> # include <sys/wait.h> # include <sys/select.h> +#endif +#ifdef __EMX__ + typedef int socklen_t; #endif #include <time.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h>
Modified src/main.c from [38aa437f8c] to [65c875517e].
@@ -624,10 +624,15 @@ #ifdef __MINGW32__ /* Set binary mode on windows to avoid undesired translations ** between \n and \r\n. */ setmode(_fileno(g.httpOut), _O_BINARY); setmode(_fileno(g.httpIn), _O_BINARY); +#endif +#ifdef __EMX__ + /* Similar hack for OS/2 */ + setmode(fileno(g.httpOut), O_BINARY); + setmode(fileno(g.httpIn), O_BINARY); #endif g.cgiPanic = 1; blob_read_from_file(&config, zFile); while( blob_line(&config, &line) ){ if( !blob_token(&line, &key) ) continue;