[kde-freebsd] Patch for kdenetwork3's ktalkd to make it build on FreeBSD HEAD

2010-11-02 Thread Ed Schouten
how the code should be fixed. Greetings, -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ --- ktalkd/ktalkd/find_user.cpp +++ ktalkd/ktalkd/find_user.cpp @@ -339,34 +339,33 @@ #else /*not PROC_FIND_USER*/ +#include utmpx.h + int find_user(char *name, char *tty, char *disp

[kde-freebsd] Re: Patch for kdenetwork3's ktalkd to make it build on FreeBSD HEAD

2010-11-02 Thread Ed Schouten
Right after I sent my message I noticed this line of C code: * Ed Schouten e...@80386.nl, 20101102 19:20: if (!(statb.st_mode 020)) /* ?character device? */ This should of course be rewritten to something like: if (!S_ISCHR(statb.st_mode)) -- Ed

[kde-freebsd] Re: 9-CURRENT: ports/net/kdenetwork3 does not compile

2010-11-02 Thread Ed Schouten
, -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ --- ktalkd/ktalkd/find_user.cpp +++ ktalkd/ktalkd/find_user.cpp @@ -339,34 +339,33 @@ #else /*not PROC_FIND_USER*/ +#include utmpx.h + int find_user(char *name, char *tty, char *disp) { -struct utmp ubuf; +struct utmpx *ubuf

Re: [kde-freebsd] 8-current/kde3 stty defaults incorrect under konsole

2008-06-26 Thread Ed Schouten
* Tilman Linneweh [EMAIL PROTECTED] wrote: On Jun 25, 2008, at 22:15, Ed Schouten wrote: Would you mind if I add this patch to the kdelibs3 port? It is needed to make control characters work with konsole, which seems to be broken on -CURRENT, because the CTRL() macro has been slightly

Re: [kde-freebsd] 8-current/kde3 stty defaults incorrect under konsole

2008-06-26 Thread Ed Schouten
* Ed Schouten [EMAIL PROTECTED] wrote: An even better approach would be to use CKILL/CQUIT/etc. There are non-standard either, but it's better than using the CTRL() macro directly. I'll come up with a patch soonish. :) Something like this? %%% --- kdecore/kpty.cpp +++ kdecore/kpty.cpp

Re: [kde-freebsd] 8-current/kde3 stty defaults incorrect under konsole

2008-06-25 Thread Ed Schouten
+++ kdecore/kpty.cpp @@ -128,9 +128,8 @@ #include kstandarddirs.h // locate // not defined on HP-UX for example -#ifndef CTRL -# define CTRL(x) ((x) 037) -#endif +#undef CTRL +#define CTRL(x) ((x) 037) #define TTY_GROUP tty %%% Yours, -- Ed Schouten [EMAIL PROTECTED] WWW: http

Re: [kde-freebsd] 8-current/kde3 stty defaults incorrect under konsole

2008-06-25 Thread Ed Schouten
KDE folks, * Mark Atkinson [EMAIL PROTECTED] wrote: Ed Schouten wrote: Hello Mark, * Mark Atkinson [EMAIL PROTECTED] wrote: Hi, Is anyone else running freebsd-current with kde3 (and has rebuilt both recently)? I can only suspect this is related to recent changes in current

Re: [kde-freebsd] 8-current/kde3 stty defaults incorrect under konsole

2008-06-25 Thread Ed Schouten
* Andy Fawcett [EMAIL PROTECTED] wrote: What's the effect of the patch on 6-STABLE and 7-STABLE? If it doesn't cause problems there, you can add it. It will not cause any changes on the other branches. I'll commit this patch when I arrive at the office. Thanks! -- Ed Schouten [EMAIL