DragonFly BSD
DragonFly commits List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 30 Jan 2011 13:52:13 -0800 (PST)

commit c4fc0030b15e1f9c47037961c7b02ff7c4762ab4
Author: Sascha Wildner <saw@online.de>
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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c4fc0030b15e1f9c47037961c7b02ff7c4762ab4


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]