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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnisdb/ldap_xdr.c
          +++ new/usr/src/lib/libnisdb/ldap_xdr.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2015 Gary Mills
  23   24   * Copyright (c) 2001 by Sun Microsystems, Inc.
  24   25   * All rights reserved.
  25   26   */
  26   27  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   28  #include <string.h>
  30   29  #include <sys/syslog.h>
  31   30  #include <sys/types.h>
  32   31  #include <rpc/types.h>
  33   32  #include <rpc/xdr.h>
  34   33  #include <rpcsvc/nis.h>
  35   34  
  36   35  #include "db_mindex_c.h"
  37   36  
  38   37  #include "ldap_xdr.h"
  39   38  #include "ldap_util.h"
  40   39  
  41      -extern bool_t xdr_nis_object();
       40 +#include "nis_clnt.h"
  42   41  
  43   42  /*
  44   43   * In order not to change the on-disk NIS+ DB format, we need make sure
  45   44   * that XDR does nothing for the new structures added to various C++
  46   45   * classes.
  47   46   */
  48   47  
  49   48  bool_t
  50   49  xdr___nis_table_mapping_t(XDR *xdrs, void *t) {
  51   50          return (TRUE);
↓ open down ↓ 714 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX