marc 98/09/06 20:42:04
Modified: src/modules/standard mod_include.c Log: Fix double dbg definition if DEBUG_INCLUDE_CMD is set under OS2. PR: 2917 Submitted by: Brian Carr <[EMAIL PROTECTED]> Revision Changes Path 1.104 +5 -5 apache-1.3/src/modules/standard/mod_include.c Index: mod_include.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_include.c,v retrieving revision 1.103 retrieving revision 1.104 diff -u -r1.103 -r1.104 --- mod_include.c 1998/08/25 09:15:38 1.103 +++ mod_include.c 1998/09/07 03:42:03 1.104 @@ -748,19 +748,19 @@ table *env = r->subprocess_env; int child_pid = 0; #ifdef DEBUG_INCLUDE_CMD +#ifdef OS2 + /* under OS/2 /dev/tty is referenced as con */ + FILE *dbg = fopen("con", "w"); +#else FILE *dbg = fopen("/dev/tty", "w"); #endif +#endif #ifndef WIN32 char err_string[MAX_STRING_LEN]; #endif #ifdef DEBUG_INCLUDE_CMD -#ifdef OS2 - /* under OS/2 /dev/tty is referenced as con */ - FILE *dbg = fopen("con", "w"); -#else fprintf(dbg, "Attempting to include command '%s'\n", s); -#endif #endif if (r->path_info && r->path_info[0] != '\0') {