Changeset 3742 for zzuf/trunk


Ignore:
Timestamp:
Oct 28, 2009, 12:10:22 AM (11 years ago)
Author:
Sam Hocevar
Message:

Compilation fix for systems without get_unlocked().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/zzcat.c

    r3741 r3742  
    115115#if defined HAVE_GETLINE
    116116    case 23: /* getline() and getc() calls */
     117#if defined HAVE_GETC_UNLOCKED
    117118    case 24: /* getline() and getc_unlocked() calls */
     119#endif
    118120        stream = fopen(name, "r");
    119121        if(!stream)
    120122            return EXIT_FAILURE;
    121123        i = 0;
     124#if defined HAVE_GETC_UNLOCKED
    122125        while ((c = (atoi(argv[1]) == 23) ? getc(stream)
    123126                                          : getc_unlocked(stream)) != EOF)
     127#else
     128        while ((c = getc(stream)) != EOF)
     129#endif
    124130        {
    125131            char *line;
Note: See TracChangeset for help on using the changeset viewer.