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

*** 20,35 **** * CDDL HEADER END */ /* * db_entry_c.x * * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - %#pragma ident "%Z%%M% %I% %E% SMI" - /* * Some manifest constants, chosen to maximize flexibility without * plugging the wire full of data. */ --- 20,34 ---- * CDDL HEADER END */ /* * db_entry_c.x * + * Copyright 2015 Gary Mills * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * Some manifest constants, chosen to maximize flexibility without * plugging the wire full of data. */
*** 38,47 **** --- 37,50 ---- %#define _DB_NIS_H %#include <rpcsvc/nis.h> #endif /* RPC_HDR */ + #if RPC_XDR + %#include "nis_clnt.h" + #endif /* RPC_XDR */ + #ifdef USINGC enum db_status {DB_SUCCESS, DB_NOTFOUND, DB_NOTUNIQUE, DB_BADTABLE, DB_BADQUERY, DB_BADOBJECT, DB_MEMORY_LIMIT, DB_STORAGE_LIMIT, DB_INTERNAL_ERROR};