Ignore:
Timestamp:
Jul 16, 2008, 11:37:12 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • lib-stream.c: try to make the filbuf() implementation portable across HP-UX and OpenSolaris?.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r2552 r2553  
    6868AC_DEFINE_UNQUOTED(RECV_T, $ac_v_recv_t, [Define to the recv() return type])
    6969
     70AC_MSG_CHECKING(for FILE* internal members)
     71ac_v_fp_cnt="unknown"
     72ac_v_fp_ptr="unknown"
     73AC_TRY_COMPILE([#include <stdio.h>],
     74 [FILE *fp; fp->__cnt++; fp->__ptr++],
     75 [ac_v_fp_cnt=__cnt; ac_v_fp_ptr=__ptr])
     76AC_TRY_COMPILE([#include <stdio.h>],
     77 [FILE *fp; fp->_cnt++; fp->_ptr++],
     78 [ac_v_fp_cnt=_cnt; ac_v_fp_ptr=_ptr])
     79AC_TRY_COMPILE([#include <stdio.h>],
     80 [FILE *fp; fp->_c++; fp->_p++],
     81 [ac_v_fp_cnt=_c; ac_v_fp_ptr=_p])
     82AC_MSG_RESULT($ac_v_fp_cnt/$ac_v_fp_ptr)
     83AC_DEFINE_UNQUOTED(FILE_CNT, $ac_v_fp_cnt, [Define to the FILE::cnt member name])
     84AC_DEFINE_UNQUOTED(FILE_PTR, $ac_v_fp_ptr, [Define to the FILE::ptr member name])
     85
    7086AC_MSG_CHECKING(for pragma INIT/FINI)
    7187AC_TRY_COMPILE([],
Note: See TracChangeset for help on using the changeset viewer.