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


   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  *      db_vers_c.x
  24  *

  25  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 %#pragma ident  "%Z%%M% %I%     %E% SMI"


  30 
  31 #if RPC_HDR
  32 %#ifndef _DB_VERS_H
  33 %#define _DB_VERS_H
  34 #endif /* RPC_HDR */
  35 
  36 %/* 'vers' is the version identifier.  */
  37 
  38 %
  39 %#include "nisdb_rw.h"
  40 %
  41 #if RPC_HDR || RPC_XDR
  42 #ifdef USINGC
  43 struct vers {
  44         u_int vers_high;
  45         u_int vers_low;
  46         u_int time_sec;
  47         u_int time_usec;
  48         __nisdb_rwlock_t vers_rwlock;
  49 };




   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  *      db_vers_c.x
  24  *
  25  * Copyright 2015 Gary Mills
  26  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 
  30 #if RPC_XDR
  31 %#include "ldap_xdr.h"
  32 #endif /* RPC_XDR */
  33 
  34 #if RPC_HDR
  35 %#ifndef _DB_VERS_H
  36 %#define _DB_VERS_H
  37 #endif /* RPC_HDR */
  38 
  39 %/* 'vers' is the version identifier.  */
  40 
  41 %
  42 %#include "nisdb_rw.h"
  43 %
  44 #if RPC_HDR || RPC_XDR
  45 #ifdef USINGC
  46 struct vers {
  47         u_int vers_high;
  48         u_int vers_low;
  49         u_int time_sec;
  50         u_int time_usec;
  51         __nisdb_rwlock_t vers_rwlock;
  52 };