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

@@ -19,14 +19,20 @@
  * CDDL HEADER END
  */
 /*
  *      db_mindex_c.x
  *
+ * Copyright 2015 Gary Mills
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
+#if RPC_XDR
+%#include "ldap_xdr.h"
+%#include "nis_clnt.h"
+#endif /* RPC_XDR */
+
 #if RPC_HDR
 %#ifndef _DB_MINDEX_H
 %#define _DB_MINDEX_H
 
 #ifdef USINGC

@@ -87,11 +93,10 @@
         nis_object      *obj;
         strP            dirEntry<>;
 };
 typedef struct xdr_nis_object_s xdr_nis_object_t;
 
-%extern bool_t  xdr_nis_object();
 #endif /* USINGC */
 #endif /* RPC_HDR */
 
 #ifndef USINGC
 #ifdef RPC_HDR

@@ -104,12 +109,10 @@
 %               char    **dirEntry_val;
 %       }                               dirEntry;
 %};
 %typedef struct xdr_nis_object_s        xdr_nis_object_t;
 %
-%extern bool_t  xdr_nis_object();
-%
 %class db_mindex {
 %  vers rversion;
 %//  int num_indices;
 %//  db_index * indices;                /* indices[num_indices] */
 %  struct {