Diff
Not logged in

Differences From:

File src/main.c part of check-in [02a584f7f5] - Add the --private option to the "fossil commit" command. This option creates a private branch which is never pushed. by drh on 2009-08-26 18:25:48. [view]

To:

File src/main.c part of check-in [df97fae2bd] - Patches to get Fossil working on OS/2. Ticket 89bec0d9aa9f30 by drh on 2009-08-29 17:01:33. [view]

@@ -625,8 +625,13 @@
   /* 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) ){