summaryrefslogtreecommitdiff
path: root/bfd/bfd.m4
diff options
context:
space:
mode:
authorDaniel Gutson <dgutson@codesourcery.com>2010-01-05 00:40:07 +0000
committerDaniel Gutson <dgutson@codesourcery.com>2010-01-05 00:40:07 +0000
commit3ef2795643ba941ddcda5120692a81eaca6a2e7a (patch)
tree45c5a13f93275e7a8744b54ba05f29d9d018e4f1 /bfd/bfd.m4
parent13cd223784a99dc42b767ae214446932e91670a2 (diff)
downloadbinutils-redhat-3ef2795643ba941ddcda5120692a81eaca6a2e7a.tar.gz
2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
* bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC before including procfs.h. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise. * configure.in: Added autoconf probe for the pr_fpreg member. * configure: Regenerated. * config.in: Regenerated. * elf.c: Define _STRUCTURE_PROC before including procfs.h.
Diffstat (limited to 'bfd/bfd.m4')
-rw-r--r--bfd/bfd.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/bfd.m4 b/bfd/bfd.m4
index 55cc2bebbb..394c41af2c 100644
--- a/bfd/bfd.m4
+++ b/bfd/bfd.m4
@@ -8,6 +8,8 @@ AC_DEFUN([BFD_HAVE_SYS_PROCFS_TYPE],
AC_CACHE_VAL(bfd_cv_have_sys_procfs_type_$1,
[AC_TRY_COMPILE([
#define _SYSCALL32
+/* Needed for new procfs interface on sparc-solaris. */
+#define _STRUCTURED_PROC 1
#include <sys/procfs.h>],
[$1 avar],
bfd_cv_have_sys_procfs_type_$1=yes,
@@ -27,6 +29,8 @@ AC_DEFUN([BFD_HAVE_SYS_PROCFS_TYPE_MEMBER],
AC_CACHE_VAL(bfd_cv_have_sys_procfs_type_member_$1_$2,
[AC_TRY_COMPILE([
#define _SYSCALL32
+/* Needed for new procfs interface on sparc-solaris. */
+#define _STRUCTURED_PROC 1
#include <sys/procfs.h>],
[$1 avar; void* aref = (void*) &avar.$2],
bfd_cv_have_sys_procfs_type_member_$1_$2=yes,