git: Fix up <utmp.h> and <utmpx.h> for C++ programs.

Sascha Wildner swildner at
Sun Jan 30 13:53:18 PST 2011

commit c4fc0030b15e1f9c47037961c7b02ff7c4762ab4
Author: Sascha Wildner <saw at>
Date:   Sun Jan 30 22:51:27 2011 +0100

    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

Summary of changes:
 include/utmp.h  |    4 ++++
 include/utmpx.h |   18 ++++++++++--------
 2 files changed, 14 insertions(+), 8 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list