1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/tools/misc/ttyrec/clang-fixes.patch
2015-11-15 11:26:56 +01:00

22 lines
712 B
Diff

diff -ru ttyrec-1.0.8.orig/io.h ttyrec-1.0.8/io.h
--- ttyrec-1.0.8.orig/io.h 2006-06-11 17:52:50.000000000 +0200
+++ ttyrec-1.0.8/io.h 2015-11-15 09:59:54.000000000 +0100
@@ -9,5 +9,6 @@
int edup (int oldfd);
int edup2 (int oldfd, int newfd);
FILE* efdopen (int fd, const char *mode);
+void set_progname (const char *name);
#endif
diff -ru ttyrec-1.0.8.orig/ttyrec.c ttyrec-1.0.8/ttyrec.c
--- ttyrec-1.0.8.orig/ttyrec.c 2006-06-11 17:52:50.000000000 +0200
+++ ttyrec-1.0.8/ttyrec.c 2015-11-15 09:59:41.000000000 +0100
@@ -54,6 +54,7 @@
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include <signal.h>
#if defined(SVR4)
#include <fcntl.h>