diff options
| author | Greg Lewis <glewis@FreeBSD.org> | 2004-03-26 18:19:25 +0000 |
|---|---|---|
| committer | Greg Lewis <glewis@FreeBSD.org> | 2004-03-26 18:19:25 +0000 |
| commit | a26e97bac7a30eb35afccac7cf567176d7022734 (patch) | |
| tree | e210f7117f49645a2dc95f8484c2eab8ce6f2290 /editors/bed/files/patch-plugins::examples::title.cc | |
| parent | Update to 0.5.15: miscellaneous changes to widgets, dialogs, windows, (diff) | |
. Fix the build on 5.x.
Submitted by: bento via kris
Notes
Notes:
svn path=/head/; revision=105363
Diffstat (limited to 'editors/bed/files/patch-plugins::examples::title.cc')
| -rw-r--r-- | editors/bed/files/patch-plugins::examples::title.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/editors/bed/files/patch-plugins::examples::title.cc b/editors/bed/files/patch-plugins::examples::title.cc new file mode 100644 index 000000000000..32e25f5c1d91 --- /dev/null +++ b/editors/bed/files/patch-plugins::examples::title.cc @@ -0,0 +1,19 @@ +--- plugins/examples/title.cc.orig Fri Mar 26 10:30:14 2004 ++++ plugins/examples/title.cc Fri Mar 26 10:31:01 2004 +@@ -66,14 +66,14 @@ + } + #endif + #ifdef TTYNAME +-#ifdef HAS_TTYNAME_R ++#if defined(HAS_TTYNAME_R) && !defined(__FreeBSD__) + char nametty[15]; + #else + char *nametty; + #endif + // ptsname_r(titlebuf,ttys[i],MAXTITLE-nr); + if(isatty(STDOUT_FILENO)) { +-#ifdef HAS_TTYNAME_R ++#if defined(HAS_TTYNAME_R) && !defined(__FreeBSD__) + if(!ttyname_r(STDOUT_FILENO,nametty,15)) { + #else + if((nametty=ttyname(STDOUT_FILENO))) { |
