You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
722 B

Index: src/parserc.c
--- src/parserc.c.orig 2008-03-17 19:51:28 +0100
+++ src/parserc.c 2008-03-18 21:48:11 +0100
@@ -298,7 +298,7 @@
#else
panic("Command substitution is not supported in this system",NULL,NULL);
#endif
-#ifdef HAVE_SETMODE
+#if defined(HAVE_SETMODE) && defined(O_TEXT)
setmode(fileno(ret),O_TEXT);
#endif
return ret;
Index: src/xmalloc.c
--- src/xmalloc.c.orig 2008-03-10 18:46:36 +0100
+++ src/xmalloc.c 2008-03-18 21:47:56 +0100
@@ -59,7 +59,7 @@
FILE *ret = fopen(name,mode);
if(ret == NULL) panic("Error in opening file",name,strerror(errno));
-#ifdef HAVE_SETMODE
+#if defined(HAVE_SETMODE) && defined(O_TEXT)
setmode(fileno(ret),O_TEXT);
#endif
return ret;