summaryrefslogtreecommitdiff
path: root/src/shred.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-01-15 17:19:47 +0000
committerJim Meyering <jim@meyering.net>2005-01-15 17:19:47 +0000
commit6d003dd014a69442ddbf75e0c9a1e536f139cd00 (patch)
tree7d2f276c5366c8fa536c318206611c084b8c84a7 /src/shred.c
parent6d638576d4cba1dee995aa614a9e6a978f4ae5c1 (diff)
downloadcoreutils-6d003dd014a69442ddbf75e0c9a1e536f139cd00.tar.xz
(isaac_seed) [HAVE_GETHRTIME]: #if-0 this block,
because just calling gethrtime evokes an `illegal instruction' failure when compiled with Sun's c89 on Solaris 8 and 9.
Diffstat (limited to 'src/shred.c')
-rw-r--r--src/shred.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shred.c b/src/shred.c
index 2e45ff256..b84a75f12 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -587,7 +587,10 @@ isaac_seed (struct isaac_state *s)
{ gid_t t = getgid (); ISAAC_SEED (s, t); }
{
-#if HAVE_GETHRTIME
+#if 0 && HAVE_GETHRTIME
+ /* This block if if-0'd out for now because it makes shred
+ fail with an `illegal instruction' when compiled with Sun's
+ c89 on Solaris 8 and 9. */
hrtime_t t = gethrtime ();
#elif HAVE_CLOCK_GETTIME /* POSIX ns-resolution */
struct timespec t;