Github messages for mblaze
 help / color / mirror / Atom feed
* [PR PATCH] solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsize
@ 2022-06-11  3:19 gco
  2022-06-18 21:07 ` leahneukirchen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gco @ 2022-06-11  3:19 UTC (permalink / raw)
  To: ml

[-- 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"

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-20 14:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-11  3:19 [PR PATCH] solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsize gco
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

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).