With r335636 C++ program use libcasper.h and capsicum_helpers.h.

Add __BEGIN_DECLS and __END_DECLS to those headers.
This commit is contained in:
Mariusz Zaborski 2018-07-01 18:58:53 +00:00
parent 4733f21ffe
commit 2da0fcde21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335848
2 changed files with 8 additions and 0 deletions

View file

@ -46,6 +46,8 @@
#define CAPH_WRITE 0x0004
#define CAPH_LOOKUP 0x0008
__BEGIN_DECLS
static __inline int
caph_limit_stream(int fd, int flags)
{
@ -142,4 +144,6 @@ caph_enter_casper(void)
return (CASPER_SUPPORT == 0 ? 0 : caph_enter());
}
__END_DECLS
#endif /* _CAPSICUM_HELPERS_H_ */

View file

@ -71,6 +71,8 @@ typedef struct cap_channel cap_channel_t;
#endif /* ! WITH_CASPER */
#endif /* ! _CAP_CHANNEL_T_DECLARED */
__BEGIN_DECLS
#ifdef WITH_CASPER
int cap_channel_flags(const cap_channel_t *chan);
#else
@ -279,4 +281,6 @@ cap_xfer_nvlist(const cap_channel_t *chan, nvlist_t *nvl)
}
#endif
__END_DECLS
#endif /* !_LIBCASPER_H_ */