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

看板DFBSD_commit作者時間15年前 (2011/01/31 06:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
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
文章代碼(AID): #1DHT-ZHS (DFBSD_commit)
文章代碼(AID): #1DHT-ZHS (DFBSD_commit)