Module Name:    othersrc
Committed By:   agc
Date:           Sat Oct 22 05:52:44 UTC 2011

Modified Files:
        othersrc/external/bsd/iscsi/sbin/iscsid: iscsid.h

Log Message:
provide C++ header support


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/iscsi/sbin/iscsid/iscsid.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/external/bsd/iscsi/sbin/iscsid/iscsid.h
diff -u othersrc/external/bsd/iscsi/sbin/iscsid/iscsid.h:1.1.1.1 othersrc/external/bsd/iscsi/sbin/iscsid/iscsid.h:1.2
--- othersrc/external/bsd/iscsi/sbin/iscsid/iscsid.h:1.1.1.1	Mon May  2 07:01:06 2011
+++ othersrc/external/bsd/iscsi/sbin/iscsid/iscsid.h	Sat Oct 22 05:52:44 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsid.h,v 1.1.1.1 2011/05/02 07:01:06 agc Exp $	*/
+/*	$NetBSD: iscsid.h,v 1.2 2011/10/22 05:52:44 agc Exp $	*/
 
 /*-
  * Copyright (c) 2004,2006,2011 The NetBSD Foundation, Inc.
@@ -33,6 +33,18 @@
 
 #include <dev/iscsi/iscsi.h>
 
+#ifndef __BEGIN_DECLS
+#  if defined(__cplusplus)
+#  define __BEGIN_DECLS           extern "C" {
+#  define __END_DECLS             }
+#  else
+#  define __BEGIN_DECLS
+#  define __END_DECLS
+#  endif
+#endif
+
+__BEGIN_DECLS
+
 /* The socket name */
 
 #define ISCSID_SOCK_NAME   "/tmp/iscsid_socket"
@@ -896,5 +908,6 @@ typedef struct {
       Corresponding version information for driver.
 */
 
+__END_DECLS
 
 #endif /* !_ISCSID_H_ */

Reply via email to