Ignore:
Timestamp:
Jan 20, 2010, 8:59:01 AM (11 years ago)
Author:
Sam Hocevar
Message:

Improve the OpenSolaris? port: support for FILE structures, and a few
additional defines to activate libc features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/lib-stream.c

    r4260 r4285  
    171171#elif defined HAVE_FREEBSD_FILE
    172172    return (uint8_t *)stream->_p;
     173#elif defined HAVE_SOLARIS_FILE
     174    return (uint8_t *)stream->_ptr;
    173175#else
    174176    (void)stream;
     
    184186#elif defined HAVE_FREEBSD_FILE
    185187    return (int)((uint8_t *)stream->_p - (uint8_t *)stream->_bf._base);
     188#elif defined HAVE_SOLARIS_FILE
     189    return (int)((uint8_t *)stream->_ptr - (uint8_t *)stream->_base);
    186190#else
    187191    (void)stream;
     
    197201#elif defined HAVE_FREEBSD_FILE
    198202    return stream->_r;
     203#elif defined HAVE_SOLARIS_FILE
     204    return stream->_cnt;
    199205#else
    200206    (void)stream;
Note: See TracChangeset for help on using the changeset viewer.