Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2012 05:51:51 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240080 - head/lib/libprocstat
Message-ID:  <201209040551.q845pp9m002892@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trociny
Date: Tue Sep  4 05:51:50 2012
New Revision: 240080
URL: http://svn.freebsd.org/changeset/base/240080

Log:
  Add __BEGIN_DECLS and __END_DECLS to make libprocstat more C++-friendly.
  
  Submitted by:	Daniel Dettlaff <dmilith gmail com>
  MFC after:	1 week

Modified:
  head/lib/libprocstat/libprocstat.h

Modified: head/lib/libprocstat/libprocstat.h
==============================================================================
--- head/lib/libprocstat/libprocstat.h	Tue Sep  4 05:15:54 2012	(r240079)
+++ head/lib/libprocstat/libprocstat.h	Tue Sep  4 05:51:50 2012	(r240080)
@@ -144,6 +144,7 @@ struct sockstat {
 
 STAILQ_HEAD(filestat_list, filestat);
 
+__BEGIN_DECLS
 void	procstat_close(struct procstat *procstat);
 void	procstat_freeprocs(struct procstat *procstat, struct kinfo_proc *p);
 void	procstat_freefiles(struct procstat *procstat,
@@ -164,5 +165,6 @@ int	procstat_get_vnode_info(struct procs
     struct vnstat *vn, char *errbuf);
 struct procstat	*procstat_open_sysctl(void);
 struct procstat	*procstat_open_kvm(const char *nlistf, const char *memf);
+__END_DECLS
 
 #endif	/* !_LIBPROCSTAT_H_ */



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