nixpkgs/pkgs/tools/misc/coreutils-diet/coreutils-dummy.patch
Armijn Hemel 3a0ff0b50d add dietlibc'ed coreutils for the NixOS installer...
svn path=/nixpkgs/trunk/; revision=3736
2005-08-28 14:23:30 +00:00

24 lines
843 B
Diff

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;