Ignore:
Timestamp:
Oct 6, 2010, 11:33:19 PM (9 years ago)
Author:
Sam Hocevar
Message:

Fix missing ZZUF_DEBUGFD passing and debug function availability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/myfork.c

    r4668 r4674  
    212212
    213213    /* Set environment variables */
    214     sprintf(buf, "%i", DEBUG_FILENO);
     214#if defined _WIN32
     215    sprintf(buf, "%i", _get_osfhandle(pipes[0][1]));
     216#else
     217    sprintf(buf, "%i", pipes[0][1]);
     218#endif
    215219    setenv("ZZUF_DEBUGFD", buf, 1);
    216220    sprintf(buf, "%i", opts->seed);
Note: See TracChangeset for help on using the changeset viewer.