Fix up <utmp.h> and <utmpx.h> for C++ programs.
authorSascha Wildner <saw@online.de>
Sun, 30 Jan 2011 21:51:27 +0000 (22:51 +0100)
committerSascha Wildner <saw@online.de>
Sun, 30 Jan 2011 21:52:07 +0000 (22:52 +0100)
commitc4fc0030b15e1f9c47037961c7b02ff7c4762ab4
tree499bb5ae02569e7dce714ff2a73f4f061572662e
parent909fda640a31a4774cfaefe59eedbf7fc1608afc
Fix up <utmp.h> and <utmpx.h> for C++ programs.

__BEGIN_DECLS and __END_DECLS are absolutely needed around prototypes
so the functions can be called from C++ code (see the definition of
__BEGIN_DECLS in <sys/ctype.h>).

While here, put non-standard stuff in __BSD_VISIBLE instead of just
noting it in a comment.

This fixes at least x11/rxvt-unicode.

Tested-by: tuxillo
include/utmp.h
include/utmpx.h