Github messages for mblaze
 help / color / mirror / Atom feed
From: gco <gco@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsize
Date: Mon, 20 Jun 2022 00:08:22 +0200	[thread overview]
Message-ID: <20220619220822.l0kF8Zx9iZtBKnTb7il_cMFNgIBmdF_BAylow9F3Th4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-230@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

There is an updated pull request by gco against master on the mblaze repository

https://github.com/gco/mblaze-solaris solaris
https://github.com/leahneukirchen/mblaze/pull/230

solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsize
Address Solaris compile-time issues in mshow and mscan related to TIOCGWINSZ

A patch file from https://github.com/leahneukirchen/mblaze/pull/230.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-solaris-230.patch --]
[-- Type: text/x-diff, Size: 1087 bytes --]

From ee262635898e70f59abd48385342a601533b7004 Mon Sep 17 00:00:00 2001
From: gco <gco@jazzhaiku.com>
Date: Fri, 10 Jun 2022 20:11:53 -0700
Subject: [PATCH] solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and
 winsize

---
 mflow.c | 5 +++++
 mscan.c | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/mflow.c b/mflow.c
index 9bed19d..5ba925e 100644
--- a/mflow.c
+++ b/mflow.c
@@ -1,3 +1,7 @@
+#ifdef __sun
+#define __EXTENSIONS__ /* to get TIOCGWINSZ */
+#endif
+
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 
@@ -9,6 +13,7 @@
 #include <string.h>
 #include <strings.h>
 #include <unistd.h>
+#include <termios.h>
 
 #include "blaze822.h"
 #include "xpledge.h"
diff --git a/mscan.c b/mscan.c
index 52ba9a4..0494409 100644
--- a/mscan.c
+++ b/mscan.c
@@ -1,6 +1,9 @@
 #ifndef _XOPEN_SOURCE
 #define _XOPEN_SOURCE 700
 #endif
+#ifdef __sun
+#define __EXTENSIONS__ /* to get TIOCGWINSZ */
+#endif
 
 #include "xpledge.h"
 
@@ -19,6 +22,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <wchar.h>
+#include <termios.h>
 
 #include "blaze822.h"
 #include "u8decode.h"

  parent reply	other threads:[~2022-06-19 22:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-11  3:19 [PR PATCH] " gco
2022-06-18 21:07 ` leahneukirchen
2022-06-18 21:07 ` leahneukirchen
2022-06-19 22:08 ` gco [this message]
2022-06-19 22:10 ` gco
2022-06-20 14:08 ` [PR PATCH] [Merged]: " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220619220822.l0kF8Zx9iZtBKnTb7il_cMFNgIBmdF_BAylow9F3Th4@z \
    --to=gco@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).