Changeset 269 in openpam for trunk


Ignore:
Timestamp:
Jul 14, 2003, 11:53:19 PM (16 years ago)
Author:
Dag-Erling Smørgrav
Message:

FOPEN_MAX wasn't such a reliable <stdio.h> indicator after all, so
use _IOFBF instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/security/openpam.h

    r264 r269  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/include/security/openpam.h#25 $
     34 * $P4: //depot/projects/openpam/include/security/openpam.h#26 $
    3535 */
    3636
     
    121121/*
    122122 * Read cooked lines.
    123  * Checking for FOPEN_MAX is a fairly reliable way to detect the presence
    124  * of <stdio.h>
    125  */
    126 #ifdef FOPEN_MAX
     123 * Checking for _IOFBF is a fairly reliable way to detect the presence
     124 * of <stdio.h>, as SUSv3 requires it to be defined there.
     125 */
     126#ifdef _IOFBF
    127127char *
    128128openpam_readline(FILE *_f,
Note: See TracChangeset for help on using the changeset viewer.