components/pv/patches/fix-stat64.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 03 Mar 2015 16:36:10 -0800
changeset 3900 ac09ed0f6fd4
permissions -rw-r--r--
20640329 /usr/bin/pv should be 64-bit (again).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3900
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
The test to detect stat64 in the configure script for pv version 1.5.7
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
is incorrect. Googling around found the following patch at:
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
  http://www.ivarch.com/programs/pv.shtml
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
This is the home page for pv, so they are already aware of the problem.
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
--- pv-1.5.7/autoconf/header.in.orig	2015-03-03 14:45:21.433192939 -0800
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
+++ pv-1.5.7/autoconf/header.in	2015-03-03 14:46:02.429291023 -0800
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
@@ -70,6 +70,7 @@
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
 #   define stat64 stat
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
 #   define fstat64 fstat
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
 #  endif
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
+# elif defined(__sun) && defined(__SVR4)
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
 # else
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
 #  define stat64 stat
ac09ed0f6fd4 20640329 /usr/bin/pv should be 64-bit (again).
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
 #  define fstat64 fstat