Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2002 13:05:16 -0800
From:      Alex Zepeda <zipzippy@sonic.net>
To:        current@freebsd.org
Subject:   Re: uuid.h is not C++ safe
Message-ID:  <20021106210516.GA90522@blarf.homeip.net>
In-Reply-To: <3DC71B56.1050102@137.org>
References:  <3DC71B56.1050102@137.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Neither is devinfo.h.  The attached patch should fix it.

- alex

--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="devinfo.diff"

--- devinfo.h.orig	Wed Nov  6 13:03:22 2002
+++ devinfo.h	Wed Nov  6 13:04:37 2002
@@ -27,6 +27,9 @@
  *	$FreeBSD: src/lib/libdevinfo/devinfo.h,v 1.4 2002/09/20 02:16:33 imp Exp $
  */
 
+#ifndef _DEVINFO_H
+#define _DEVINFO_H
+
 #include <sys/cdefs.h>
 #include <sys/_types.h>
 
@@ -77,6 +80,8 @@
 	/* XXX add flags */
 };
 
+__BEGIN_DECLS
+
 /*
  * Acquire a coherent copy of the kernel's device and resource tables.
  * This must return success (zero) before any other interfaces will
@@ -136,3 +141,6 @@
 extern int
 	devinfo_foreach_rman(int (* fn)(struct devinfo_rman *rman, void *arg),
 	    void *arg);
+__END_DECLS
+
+#endif /* _DEVINFO_H */

--envbJBWh7q8WU6mo--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021106210516.GA90522>