Description: Autogenerated patch header for a single-debian-patch file.
 The delta against upstream is either kept as a single patch, or maintained
 in some VCS, and exported as a single patch instead of more manageable
 atomic patches.
Forwarded: not-needed

---
--- termrec-0.19.orig/Makefile.am
+++ termrec-0.19/Makefile.am
@@ -6,7 +6,6 @@ endif
 
 EXTRA_DIST= BUGS autogen.sh gettext.h export.h win32/termrec.iss \
 	VERSION get_version
-DISTCLEANFILES = _stdint.h
 ACLOCAL_AMFLAGS = -I m4
 
 CLEANFILES =
--- termrec-0.19.orig/acinclude.m4
+++ termrec-0.19/acinclude.m4
@@ -1,4 +1,3 @@
-m4_include([m4/ax_create_stdint_h.m4])
 m4_include([m4/ac_ptyranges.m4])
 m4_include([m4/ac_check_win32.m4])
 m4_include([m4/ac_shipped_lib.m4])
--- termrec-0.19.orig/configure.ac
+++ termrec-0.19/configure.ac
@@ -1,12 +1,12 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 
-AC_PREREQ(2.59)
-AC_INIT(termrec, m4_esyscmd([./get_version -n]), [kilobyte@angband.pl])
+AC_PREREQ([2.71])
+AC_INIT([termrec],[m4_esyscmd(./get_version -n)],[kilobyte@angband.pl])
 AM_INIT_AUTOMAKE([-Wall dist-xz no-dist-gzip foreign subdir-objects])
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_SRCDIR([libtty/tty.h])
-AC_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES(Makefile
         win32/icons/Makefile
         )
@@ -31,10 +31,8 @@ AX_CHECK_COMPILE_FLAG(-std=gnu11, [CFLAG
 AC_SCO
 
 # Checks for header files.
-AC_HEADER_STDC
 #AC_HEADER_TIOCGWINSZ
-AX_CREATE_STDINT_H
-AC_HEADER_TIME
+AC_CHECK_HEADERS_ONCE([sys/time.h])
 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h strings.h sys/ioctl.h termios.h \
         unistd.h bzlib.h zlib.h sys/time.h sys/select.h langinfo.h \
         netinet/in.h lzma.h pty.h libutil.h zstd.h])
--- termrec-0.19.orig/libtty/asciicast.c
+++ termrec-0.19/libtty/asciicast.c
@@ -1,5 +1,5 @@
 #include "config.h"
-#include "_stdint.h"
+#include <stdint.h>
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
@@ -487,7 +487,7 @@ void record_asciicast(FILE *f, void* sta
         fprintf(f, "{\"version\":%d, \"width\":%d, \"height\":%d",
             as->version, vt->sx, vt->sy);
         if (as->ts.tv_sec)
-            fprintf(f, ", \"timestamp\":%ld", as->ts.tv_sec);
+            fprintf(f, ", \"timestamp\":%lld", (long long int)as->ts.tv_sec);
         if (as->version == 1)
             fprintf(f, ", \"stdout\":[\n");
         else
--- termrec-0.19.orig/libtty/dosrecorder.c
+++ termrec-0.19/libtty/dosrecorder.c
@@ -9,7 +9,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <unistd.h>
-#include "_stdint.h"
+#include <stdint.h>
 #include "gettext.h"
 #include "export.h"
 #include "formats.h"
--- termrec-0.19.orig/libtty/formats.c
+++ termrec-0.19/libtty/formats.c
@@ -73,7 +73,7 @@ Will be called when the recording ends.
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
 #endif
-#include "_stdint.h"
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- termrec-0.19.orig/libtty/formats.h
+++ termrec-0.19/libtty/formats.h
@@ -1,13 +1,7 @@
 #include <stdio.h>
-#if TIME_WITH_SYS_TIME
+#include <time.h>
+#if HAVE_SYS_TIME_H
 # include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
 #endif
 
 typedef void play_func(FILE *f,
--- termrec-0.19.orig/play/termplay.c
+++ termrec-0.19/play/termplay.c
@@ -10,7 +10,7 @@
 # include <termios.h>
 # include <unistd.h>
 #endif
-#include "_stdint.h"
+#include <stdint.h>
 #include "gettext.h"
 #include "common.h"
 #include "sys/threads.h"
--- termrec-0.19.orig/tests/vt.c
+++ termrec-0.19/tests/vt.c
@@ -4,6 +4,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdbool.h>
+#include <inttypes.h>
 #include "tty.h"
 #include "wcwidth.h"
 
@@ -50,7 +51,7 @@ static const char* describe_attr(uint64_
         b+=sprintf(b, " bg="), b+=describe_color(b, attr>>32);
 #define INVALID_ATTRS 0x7000000080000000
     if (attr & INVALID_ATTRS)
-        b+=sprintf(b, "bad_attr:%lx", attr & INVALID_ATTRS);
+        b+=sprintf(b, "bad_attr:%"PRIx64, attr & INVALID_ATTRS);
 
     return *buf? buf+1 : buf;
 }
--- termrec-0.19.orig/tests/vtmir.c
+++ termrec-0.19/tests/vtmir.c
@@ -4,7 +4,7 @@
 #include "sys/compat.h"
 #include "sys/threads.h"
 #include "sys/error.h"
-#include "_stdint.h"
+#include <stdint.h>
 #include <unistd.h>
 
 
--- termrec-0.19.orig/win32/term.c
+++ termrec-0.19/win32/term.c
@@ -8,7 +8,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include "config.h"
-#include "_stdint.h"
+#include <stdint.h>
 #include "sys/utils.h"
 #include "tty.h"
 #include "draw.h"
