Github messages for mblaze
 help / color / mirror / Atom feed
From: gco <gco@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsize
Date: Sat, 11 Jun 2022 05:19:39 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-230@inbox.vuxu.org> (raw)

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

There is a new pull request by gco against master on the mblaze repository

https://github.com/gco/mblaze 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: 1086 bytes --]

From b6c1da3b3581cf34307d9a4965e625e9d2b80082 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

---
 GNUmakefile | 4 ++++
 mflow.c     | 1 +
 mscan.c     | 1 +
 3 files changed, 6 insertions(+)

diff --git a/GNUmakefile b/GNUmakefile
index 07a0b1a..1ce127e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -14,6 +14,10 @@ ifeq ($(OS),Darwin)
 LDLIBS=-liconv
 endif
 
+ifeq ($(OS),SunOS)
+override CFLAGS+=-D__EXTENSIONS__
+endif
+
 DESTDIR=
 PREFIX=/usr/local
 BINDIR=$(PREFIX)/bin
diff --git a/mflow.c b/mflow.c
index 9bed19d..2bfedf0 100644
--- a/mflow.c
+++ b/mflow.c
@@ -9,6 +9,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..8d8a498 100644
--- a/mscan.c
+++ b/mscan.c
@@ -19,6 +19,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <wchar.h>
+#include <termios.h>
 
 #include "blaze822.h"
 #include "u8decode.h"

             reply	other threads:[~2022-06-11  3:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-11  3:19 gco [this message]
2022-06-18 21:07 ` leahneukirchen
2022-06-18 21:07 ` leahneukirchen
2022-06-19 22:08 ` [PR PATCH] [Updated] " gco
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=gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-230@inbox.vuxu.org \
    --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).