Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/dirent.h
          +++ new/usr/src/uts/common/sys/dirent.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  22   22  /*        All Rights Reserved   */
  23   23  
  24   24  
  25   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  26   28   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  27   29   * Use is subject to license terms.
  28   30   */
  29   31  
  30   32  #ifndef _SYS_DIRENT_H
  31   33  #define _SYS_DIRENT_H
  32   34  
  33   35  #include <sys/feature_tests.h>
  34   36  
  35   37  #ifdef  __cplusplus
↓ open down ↓ 76 lines elided ↑ open up ↑
 112  114  #if defined(_LP64) && defined(_LARGEFILE64_SOURCE)
 113  115  #ifdef  __PRAGMA_REDEFINE_EXTNAME
 114  116  #pragma redefine_extname        getdents64      getdents
 115  117  #else
 116  118  #define getdents64              getdents
 117  119  #define dirent64                dirent
 118  120  #define dirent64_t              dirent_t
 119  121  #endif
 120  122  #endif  /* _LP64 && _LARGEFILE64_SOURCE */
 121  123  
 122      -#if defined(__STDC__)
 123  124  extern int getdents(int, struct dirent *, size_t);
 124      -#else
 125      -extern int getdents();
 126      -#endif
 127  125  
 128  126  /* N.B.: transitional large file interface version deliberately not provided */
 129  127  
 130  128  #endif /* !defined(_KERNEL) */
 131  129  #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
 132  130  
 133  131  #ifdef  __cplusplus
 134  132  }
 135  133  #endif
 136  134  
 137  135  #endif  /* _SYS_DIRENT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX