[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: another stdio patch for UnixWare
From: |
Bruno Haible |
Subject: |
Re: another stdio patch for UnixWare |
Date: |
Sun, 11 Oct 2020 16:26:13 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; ) |
Tim Rice wrote:
> 2020-09-30 Tim Rice <tim@multitalents.net>
> * lib/stdio-impl.h: Add support for UnixWare
I prefer to use the ifdefs that we found a couple of days ago.
What did you mean by "best not to use __base on these platforms",
when 4 lines below, the code does
# define _base __base
2020-10-11 Bruno Haible <bruno@clisp.org>
stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
Reported Tim Rice <tim@multitalents.net> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
Uses the info from
<https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
* lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
diff --git a/lib/stdio-impl.h b/lib/stdio-impl.h
index 067b95e..15066aa 100644
--- a/lib/stdio-impl.h
+++ b/lib/stdio-impl.h
@@ -175,7 +175,7 @@
# define fp_ fp
# endif
-# if defined _SCO_DS /* OpenServer */
+# if defined _SCO_DS || (defined __SCO_VERSION__ || defined __sysv5__) /*
OpenServer 5, OpenServer 6, UnixWare 7 */
# define _cnt __cnt
# define _ptr __ptr
# define _base __base