Paul Eggert <[EMAIL PROTECTED]> writes:

|    From: Jim Meyering <[EMAIL PROTECTED]>
|    Date: 13 Mar 2000 23:55:52 +0100
|
|    FYI, even indented, `#error' is not portable.
|    SunOS 4.1.4 cc rejects it.
|
| Hmm, that doesn't match my recollection.  I just checked, and
| SunOS 4.1.4 cc compiles and runs the following program just fine:
|
| #if 0
|  #error "foo"
| #endif
| main() { return 0; }

Hmm...
I didn't test it, but rather based it on a fileutils ChangeLog entry
from you.  Maybe you were using a different version of cc back when
you wrote it?

  Date: Wed, 21 Apr 1999 23:14:20 -0700 (PDT)
  From: Paul Eggert <[EMAIL PROTECTED]>
  Message-Id: <[EMAIL PROTECTED]>
  To: [EMAIL PROTECTED]
  CC: [EMAIL PROTECTED]
  In-reply-to: <[EMAIL PROTECTED]> ([EMAIL PROTECTED])
  Subject: minor patch to shred.c (cyberramp fileutils-4.0g) for SunOS 4.1.4 cc
  References: <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

     From: Jim Meyering <[EMAIL PROTECTED]>
     Date: 21 Apr 1999 08:21:42 -0500

       http://host3.meyering.dlci45.adsl.cyberramp.net/fetish/fileutils-4.0g.tar.gz

  I haven't had a chance to run it, but here are a couple of proposed
  patches found by inspecting the diffs.

  1999-04-21  Paul Eggert  <[EMAIL PROTECTED]>

          * NEWS: Describe recent changes to shred, and to m4/lfs.m4.
          (I forgot this in my earlier patches.)

          * src/shred.c (word32): Don't use `#error'; it runs afoul of
          SunOS 4.1.4 cc.

  diff -ru fileutils-4.0g/NEWS fileutils/NEWS
  --- fileutils-4.0g/NEWS       Mon Apr 19 07:09:06 1999
  +++ fileutils/NEWS    Wed Apr 21 23:04:38 1999
  @@ -1,5 +1,13 @@
   Changes in release 4.1:
   [4.0g]
  +* New large-file support for AIX and HP-UX, and for cross-compiles.
  +* shred's default options are now suitable for devices, not files, since
  +  shred is more reliable on devices.  shred now does not remove by default;
  +  the old -p or --preserve option was inverted and renamed to -u or --remove.
  +* shred -u now attempts to truncate devices before removing them.
  +* shred -v no longer outputs carriage-returns; shred -vv has no extra effect;
  +  shred -v now outputs to stderr.
  +* shred now tries to find the size of a non-regular file by seeking to its end.
   * dd now opens the output file for *read* access only if `seek=' is used.
   [4.0f]
   * `ls --color' no longer segfaults
  diff -ru fileutils-4.0g/src/shred.c fileutils/src/shred.c
  --- fileutils-4.0g/src/shred.c        Tue Apr 20 06:25:37 1999
  +++ fileutils/src/shred.c     Wed Apr 21 23:06:49 1999
  @@ -513,7 +513,9 @@
   #   if UCHAR_MAX == 0xffffffff
   typedef unsigned char word32;
   #   else
  -#    error No 32-bit type available!
  +      /* The following line is intended to throw an error.
  +      Using #error is not portable enough.  */
  +      "No 32-bit type available!"
   #   endif
   #  endif
   # endif

Reply via email to