nixpkgs/pkgs/tools/misc/coreutils-diet/coreutils-dummy.patch

25 lines
843 B
Diff
Raw Normal View History

diff -ruN coreutils-5.2.1/src/paste.c coreutils-5.2.1.new/src/paste.c
--- coreutils-5.2.1/src/paste.c 2004-01-23 09:57:02.000000000 +0100
+++ coreutils-5.2.1.new/src/paste.c 2005-08-28 16:03:10.000000000 +0200
@@ -52,13 +52,16 @@
/* Indicates that no delimiter should be added in the current position. */
#define EMPTY_DELIM '\0'
-static FILE dummy_closed;
+/* static FILE dummy_closed; */
/* Element marking a file that has reached EOF and been closed. */
-#define CLOSED (&dummy_closed)
+/* #define CLOSED (&dummy_closed) */
-static FILE dummy_endlist;
+/* static FILE dummy_endlist; */
/* Element marking end of list of open files. */
-#define ENDLIST (&dummy_endlist)
+/* #define ENDLIST (&dummy_endlist) */
+
+#define CLOSED ((FILE *)-1)
+#define ENDLIST ((FILE *)-2)
/* Name this program was run with. */
char *program_name;