Yaakov Selkowitz 2024-02-15 16:50:59 -05:00
parent 2e9425ccab
commit 982c40d4b5
2 changed files with 23 additions and 0 deletions

View File

@ -18,6 +18,8 @@ Summary: MinGW terminal feature database
License: GPL-2.0-or-later License: GPL-2.0-or-later
URL: ftp://ftp.gnu.org/gnu/termcap/ URL: ftp://ftp.gnu.org/gnu/termcap/
Source0: ftp://ftp.gnu.org/gnu/termcap/termcap-%{version}.tar.gz Source0: ftp://ftp.gnu.org/gnu/termcap/termcap-%{version}.tar.gz
# Fix implicit function declarations
Patch0: termcap-1.3.1-implicit.patch
BuildArch: noarch BuildArch: noarch
@ -92,6 +94,7 @@ Static version of the cross compiled termcap library.
%prep %prep
%setup -q -n termcap-%{version} %setup -q -n termcap-%{version}
%patch -P0 -p1
# Packaged script doesn't understand --bindir, so rebuild: # Packaged script doesn't understand --bindir, so rebuild:
autoconf autoconf

View File

@ -0,0 +1,20 @@
FTBFS with mingw-gcc 14:
../tparam.c: In function 'memory_out':
../tparam.c:51:3: error: implicit declaration of function 'write' [-Wimplicit-function-declaration]
diff --git a/tparam.c b/tparam.c
index 5a9809a..c9aceb1 100644
--- a/tparam.c
+++ b/tparam.c
@@ -38,6 +38,10 @@ char *realloc ();
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#endif /* not emacs */
#ifndef NULL