]> granicus.if.org Git - strace/commitdiff
2004-03-01 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Mon, 1 Mar 2004 22:10:52 +0000 (22:10 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 1 Mar 2004 22:10:52 +0000 (22:10 +0000)
* configure.ac: Check for `struct user_desc' in <asm/ldt.h>.
* process.c [HAVE_STRUCT_USER_DESC]: Use struct user_desc in place of
struct modify_ldt_ldt_s.
* mem.c [HAVE_STRUCT_USER_DESC]: Likewise.

configure.ac
mem.c
process.c

index b7cd49ba1d6b3bb053321934d2f583d29aebc14e..490cc05ebb55ac62fb54ac944d8e94d77155abf0 100644 (file)
@@ -210,6 +210,8 @@ AC_CHECK_TYPES([struct __old_kernel_stat],,, [#include <asm/stat.h>])
 AC_CHECK_TYPES([struct pt_all_user_regs, struct ia64_fpreg],,,
               [#include <sys/ptrace.h>])
 
+AC_CHECK_TYPES([struct user_desc],,, [#include <asm/ldt.h>])
+
 AC_CHECK_DECLS([sys_errlist])
 AC_CHECK_DECLS([sys_siglist, _sys_siglist],,, [#include <signal.h>])
 
diff --git a/mem.c b/mem.c
index ee7a7dfdcc05d815c256956041e941cacff48b0b..7e8f9bacb576664267edad6eb8bbf2de17863721 100644 (file)
--- a/mem.c
+++ b/mem.c
@@ -41,6 +41,9 @@
 
 #if defined(LINUX) && defined(I386)
 #include <asm/ldt.h>
+# ifdef HAVE_STRUCT_USER_DESC
+#  define modify_ldt_ldt_s user_desc
+# endif
 #endif
 #if defined(LINUX) && defined(SH64)
 #include <asm/page.h>      /* for PAGE_SHIFT */
index 6d503afaaba4b007545c91a58e0a0dabc2f460b7..ccd715e79a4ce1af569499f29aae7c4c8b608d0f 100644 (file)
--- a/process.c
+++ b/process.c
@@ -542,6 +542,9 @@ static struct xlat clone_flags[] = {
 
 # ifdef I386
 #  include <asm/ldt.h>
+#   ifdef HAVE_STRUCT_USER_DESC
+#    define modify_ldt_ldt_s user_desc
+#   endif
 extern void print_ldt_entry();
 # endif