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

@@ -18,16 +18,15 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright 2015 Gary Mills
  * Copyright (c) 2001 by Sun Microsystems, Inc.
  * All rights reserved.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <string.h>
 #include <sys/syslog.h>
 #include <sys/types.h>
 #include <rpc/types.h>
 #include <rpc/xdr.h>

@@ -36,11 +35,11 @@
 #include "db_mindex_c.h"
 
 #include "ldap_xdr.h"
 #include "ldap_util.h"
 
-extern bool_t xdr_nis_object();
+#include "nis_clnt.h"
 
 /*
  * In order not to change the on-disk NIS+ DB format, we need make sure
  * that XDR does nothing for the new structures added to various C++
  * classes.