Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/poll.h
          +++ new/usr/src/head/poll.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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  
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  23   24   * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24   25   */
  25   26  
  26   27  /*      Copyright (c) 1988 AT&T */
  27   28  /*        All Rights Reserved   */
  28   29  
  29   30  #ifndef _POLL_H
  30   31  #define _POLL_H
  31   32  
  32   33  /*
↓ open down ↓ 6 lines elided ↑ open up ↑
  39   40  #include <time.h>
  40   41  #include <signal.h>
  41   42  #endif  /* defined(__EXTENSIONS__) ... */
  42   43  
  43   44  #ifdef __cplusplus
  44   45  extern "C" {
  45   46  #endif
  46   47  
  47   48  #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
  48   49  
  49      -#if defined(__STDC__)
  50      -
  51   50  extern int ppoll(struct pollfd *_RESTRICT_KYWD, nfds_t,
  52   51      const struct timespec *_RESTRICT_KYWD, const sigset_t *_RESTRICT_KYWD);
  53   52  
  54      -#else   /* __STDC__ */
  55      -
  56      -extern int ppoll();
  57      -
  58      -#endif /* __STDC__ */
  59      -
  60   53  #endif  /* defined(__EXTENSIONS__) ... */
  61   54  
  62   55  #ifdef __cplusplus
  63   56  }
  64   57  #endif
  65   58  
  66   59  #endif  /* _POLL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX