Changeset 2d3c472b in rtems for cpukit/include


Ignore:
Timestamp:
Nov 15, 2002, 2:50:44 PM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
471bcf0
Parents:
8a2e2aaa
Message:

2002-11-15 Ralf Corsepius <corsepiu@…>

  • include/rtems/userenv.h: Rely upon <limits.h> for _POSIX_LOGIN_NAME_MAX.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/userenv.h

    r8a2e2aaa r2d3c472b  
    2525 *  External structures
    2626 */
    27 #if !defined(LOGIN_NAME_MAX)
    28 #if defined(__linux__)
     27
     28/*
     29 * According to IEEE Std 1003.1-2001,
     30 * limits.h is supposed to provide _POSIX_LOGIN_NAME_MAX
     31 * FIXME: We should not rely on this.
     32 */
     33#include <limits.h>
     34
     35#ifdef _POSIX_LOGIN_NAME_MAX
    2936#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
    3037#else
    31 #error "don't know how to set LOGIN_NAME_MAX"
    32 #endif
     38/* Fallback */
     39#define LOGIN_NAME_MAX 9
    3340#endif
    3441
Note: See TracChangeset for help on using the changeset viewer.