diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2016-03-07 09:59:55 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2016-03-07 09:59:55 +0000 |
commit | a3ecab634dafa408da8be1e715c9316edd71ef7d (patch) | |
tree | bcfbda82fa235f1704438f0754c94272afc383a2 /x11/cool-retro-term/files | |
parent | e400540ae216e3ef3755e56ac1b365a3cca6fd4d (diff) | |
download | ports-a3ecab634dafa408da8be1e715c9316edd71ef7d.tar.gz ports-a3ecab634dafa408da8be1e715c9316edd71ef7d.zip |
Notes
Diffstat (limited to 'x11/cool-retro-term/files')
-rw-r--r-- | x11/cool-retro-term/files/patch-lib_kpty.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/x11/cool-retro-term/files/patch-lib_kpty.cpp b/x11/cool-retro-term/files/patch-lib_kpty.cpp index 0c0231b75a4b..1b165e19749f 100644 --- a/x11/cool-retro-term/files/patch-lib_kpty.cpp +++ b/x11/cool-retro-term/files/patch-lib_kpty.cpp @@ -1,6 +1,15 @@ --- qmltermwidget/lib/kpty.cpp.orig +++ qmltermwidget/lib/kpty.cpp -@@ -84,9 +83,10 @@ extern "C" { +@@ -28,7 +28,7 @@ + + + #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) +-#define HAVE_LOGIN ++//#define HAVE_LOGIN + #define HAVE_LIBUTIL_H + #endif + +@@ -84,9 +84,10 @@ extern "C" { # include <utempter.h> } #else @@ -12,7 +21,7 @@ # endif # if !defined(_PATH_UTMPX) && defined(_UTMPX_FILE) # define _PATH_UTMPX _UTMPX_FILE -@@ -503,7 +503,7 @@ void KPty::login(const char * user, cons +@@ -503,7 +504,7 @@ void KPty::login(const char * user, cons // note: strncpy without terminators _is_ correct here. man 4 utmp if (user) { @@ -21,7 +30,7 @@ } if (remotehost) { -@@ -550,7 +550,7 @@ void KPty::login(const char * user, cons +@@ -550,7 +551,7 @@ void KPty::login(const char * user, cons # endif # endif # ifdef HAVE_UTMPX @@ -30,7 +39,7 @@ setutxent(); pututxline(&l_struct); endutxent(); -@@ -606,7 +606,7 @@ void KPty::logout() +@@ -606,7 +607,7 @@ void KPty::logout() strncpy(l_struct.ut_line, str_ptr, sizeof(l_struct.ut_line)); # ifdef HAVE_UTMPX @@ -39,7 +48,7 @@ setutxent(); if ((ut = getutxline(&l_struct))) { # else -@@ -614,7 +614,7 @@ void KPty::logout() +@@ -614,7 +615,7 @@ void KPty::logout() setutent(); if ((ut = getutline(&l_struct))) { # endif |