summaryrefslogtreecommitdiff
path: root/usr/src/lib/libnisdb/db_headers.h
diff options
context:
space:
mode:
authorScott Rotondo <Scott.Rotondo@Sun.COM>2009-05-21 22:03:24 -0700
committerScott Rotondo <Scott.Rotondo@Sun.COM>2009-05-21 22:03:24 -0700
commitd67944fbe3fa0b31893a7116a09b0718eecf6078 (patch)
tree89b9d2ec857c47e00acc2668cbdafa2edce45b14 /usr/src/lib/libnisdb/db_headers.h
parent259105bc352a464b4cdf3f424b5575e5e5e3f247 (diff)
downloadillumos-gate-d67944fbe3fa0b31893a7116a09b0718eecf6078.tar.gz
6795209 Enable compilation of ON-consolidation with GCC 4.2
6392640 rpcgen -h -T output does not compile with gcc 4.x --HG-- rename : usr/src/stand/lib/fs/nfs/pathname.h => usr/src/stand/lib/fs/nfs/st_pathname.h
Diffstat (limited to 'usr/src/lib/libnisdb/db_headers.h')
-rw-r--r--usr/src/lib/libnisdb/db_headers.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/usr/src/lib/libnisdb/db_headers.h b/usr/src/lib/libnisdb/db_headers.h
index 9f53e96863..0707b0c8f9 100644
--- a/usr/src/lib/libnisdb/db_headers.h
+++ b/usr/src/lib/libnisdb/db_headers.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -22,12 +21,10 @@
/*
* db_headers.h
*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#ifndef _DB_HEADERS_H
#define _DB_HEADERS_H
@@ -36,7 +33,16 @@
#include <stdlib.h>
#include <setjmp.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int verbose;
+
+#ifdef __cplusplus
+}
+#endif
+
extern jmp_buf dbenv;
#define FATAL(msg, fcode) \