Print this page
5910 libnisdb won't build with modern GCC

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnisdb/yptol/shim.c
          +++ new/usr/src/lib/libnisdb/yptol/shim.c
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  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 + * Copyright 2015 Gary Mills
  22   23   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   24   * Use is subject to license terms.
  24   25   */
  25   26  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   27  /*
  29   28   * DESCRIPTION: Contains the top level shim hook functions. These must have
  30   29   *              identical interfaces to the equivalent standard dbm calls.
  31   30   *
  32   31   *              Unfortunately many of these will do a copy of a datum structure
  33   32   *              on return. This is a side effect of the original DBM function
  34   33   *              being written to pass structures rather than pointers.
  35   34   *
  36   35   * NOTE :       There is a major bug/feature in dbm. A key obtained by
  37   36   *              dbm_nextkey() of dbm_firstkey() cannot be passed to dbm_store().
↓ open down ↓ 6 lines elided ↑ open up ↑
  44   43   */
  45   44  
  46   45  #include <unistd.h>
  47   46  #include <syslog.h>
  48   47  #include <ndbm.h>
  49   48  #include <strings.h>
  50   49  #include "ypsym.h"
  51   50  #include "ypdefs.h"
  52   51  #include "shim.h"
  53   52  #include "yptol.h"
       53 +#include "stubs.h"
  54   54  #include "../ldap_parse.h"
  55   55  #include "../ldap_util.h"
  56   56  
  57   57  /*
  58   58   * Globals
  59   59   */
  60   60  bool_t yptol_mode = FALSE;      /* Set if in N2L mode */
  61   61  bool_t yptol_newlock = FALSE;
  62   62                                  /*
  63   63                                   * Set if in N2L mode and we want to use the new
↓ open down ↓ 609 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX