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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnisdb/db_entry_c.x
          +++ new/usr/src/lib/libnisdb/db_entry_c.x
↓ open down ↓ 14 lines elided ↑ open up ↑
  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   23   *      db_entry_c.x
  24   24   *
       25 + * Copyright 2015 Gary Mills
  25   26   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  26   27   * Use is subject to license terms.
  27   28   */
  28   29  
  29      -%#pragma ident  "%Z%%M% %I%     %E% SMI"
  30      -
  31   30  /*
  32   31   * Some manifest constants, chosen to maximize flexibility without
  33   32   * plugging the wire full of data.
  34   33   */
  35   34  
  36   35  #if RPC_HDR
  37   36  %#ifndef _DB_NIS_H
  38   37  %#define _DB_NIS_H
  39   38  
  40   39  %#include <rpcsvc/nis.h>
  41   40  #endif /* RPC_HDR */
  42   41  
       42 +#if RPC_XDR
       43 +%#include "nis_clnt.h"
       44 +#endif /* RPC_XDR */
       45 +
  43   46  #ifdef USINGC
  44   47  enum db_status {DB_SUCCESS, DB_NOTFOUND, DB_NOTUNIQUE,
  45   48                  DB_BADTABLE, DB_BADQUERY, DB_BADOBJECT,
  46   49                  DB_MEMORY_LIMIT, DB_STORAGE_LIMIT, DB_INTERNAL_ERROR};
  47   50  
  48   51  enum db_action {DB_LOOKUP, DB_REMOVE, DB_ADD, DB_FIRST, DB_NEXT,
  49   52                          DB_ALL, DB_RESET_NEXT, DB_ADD_NOLOG,
  50   53                          DB_ADD_NOSYNC, DB_REMOVE_NOSYNC };
  51   54  #endif /* USINGC */
  52   55  
↓ open down ↓ 60 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX