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:
parent
9cf084f42e
commit
4321e9625b
@ -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_ */
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user