Artifact Content
Not logged in

Artifact 993261118df2584a2a8d51b55175f07a60f2a7df

Ticket change [993261118d] - Ticket 89bec0d9aa OS/2 support status still Open with 2 other changes by drh on 2009-08-29 16:42:50.

D 2009-08-29T16:42:50
J comment Hi\sfor\sOS/2\ssupport\swe\sneed\sa\scouple\sof\sminor\spatches.\sFor\sbinary\sfile\ssupport,\r\n\r\n<verbatim>\r\n---\smain.c.orig\sFri\sAug\s28\s16:17:16\s2009\r\n+++\smain.c\s\s\s\s\s\sFri\sAug\s28\s19:14:00\s2009\r\n@@\s-627,6\s+627,11\s@@\r\n\s\s\ssetmode(_fileno(g.httpOut),\s_O_BINARY);\r\n\s\s\ssetmode(_fileno(g.httpIn),\s_O_BINARY);\r\n\s#endif\r\n+#ifdef\s__EMX__\r\n+\s\s/*\sLikewise\sfor\sOS/2\s*/\r\n+\s\ssetmode(fileno(g.httpOut),\sO_BINARY);\r\n+\s\ssetmode(fileno(g.httpIn),\sO_BINARY);\r\n+#endif\r\n\s\s\sg.cgiPanic\s=\s1;\r\n\s\s\sblob_read_from_file(&config,\szFile);\r\n\s\s\swhile(\sblob_line(&config,\s&line)\s){\r\n</verbatim>\r\n\r\nWe\salso\sdon't\shave\ssocklen_t,\sI\sdid\sthis,\smight\snot\sbe\sthe\sbest\sspot\sfor\sa\stypedef,\r\n\r\n<verbatim>\r\n---\scgi.c.orig\s\sFri\sAug\s28\s16:17:16\s2009\r\n+++\scgi.c\s\s\s\s\s\s\sFri\sAug\s28\s18:54:38\s2009\r\n@@\s-48,6\s+48,10\s@@\r\n\s#include\s<unistd.h>\r\n\s#include\s"cgi.h"\r\n\r\n+#ifdef\s__EMX__\r\n+typedef\sint\ssocklen_t;\r\n+#endif\r\n+\r\n\s#if\sINTERFACE\r\n\s/*\r\n\s**\sShortcuts\sfor\scgi_parameter.\s\sP("x")\sreturns\sthe\svalue\sof\squery\sparameter\r\n</verbatim>\r\n\r\nAlso\sideally\sthe\sbuild\sprocess\sfor\stranslate\setc\sshould\sbuild\stranslate$(E),\sI\sadded\s-Zexe\sto\sthe\sCFLAGS\swhich\sis\sa\sworkaround\sto\sforce\sbuilding\sfoo\sand\sfoo.exe.\r\n\r\nSorry\sfor\sthe\sbadly\sformatted\spatches,\swithout\sthe\sextra\slines\sthey\sran\stogether\sas\sone\sline\sand\sI\scouldn't\ssee\sany\swhere\sto\sattach\sthem.
J resolution Open
K 89bec0d9aa9f306d13eefc3384aa8b07746c10d5
U drh
Z 0ff3c165e954dcafc3b7cf5cdf217941