Ticket #12699: m4.patch

File m4.patch, 1.4 KB (added by takanori@…, 17 years ago)
  • files/patch-src_output.c

     
     1--- src/output.c        5 Jul 2007 03:53:08 -0000       1.1.1.1.2.23
     2+++ src/output.c        22 Jul 2007 04:23:17 -0000
     3@@ -252,6 +252,11 @@ m4_tmpopen (int divnum)
     4   else if (set_cloexec_flag (fileno (file), true) != 0)
     5     M4ERROR ((warning_status, errno,
     6              "Warning: cannot protect diversion across forks"));
     7+  /* POSIX states that it is undefined whether an append stream starts
     8+     at offset 0 or at the end.  We want the beginning.  */
     9+  else if (fseeko (file, 0, SEEK_SET) != 0)
     10+    M4ERROR ((EXIT_FAILURE, errno,
     11+             "cannot seek to beginning of diversion"));
     12   return file;
     13 }
     14
  • Portfile

     
    44
    55name            m4
    66version         1.4.10
     7revision        1
    78categories      devel
    89maintainers     blair openmaintainer
    910platforms       darwin
     
    2425checksums       md5 0a35bab2f5d605e08083d7e3cbd4b8b0 \
    2526                sha1 df46910c7e711aef1a654b077ef48d86a6a0cc6b \
    2627                rmd160 db9e91a01104a7543e69527da6d4f059a56ffefb
     28patchfiles      patch-src_output.c
    2729
    2830configure.args  --program-prefix=g
    2931