]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define __SYSCALL_WORDSIZE for x86-64
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 21 May 2012 18:45:16 +0000 (11:45 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 21 May 2012 18:45:16 +0000 (11:45 -0700)
ChangeLog
sysdeps/unix/sysv/linux/bits/statvfs.h
sysdeps/x86_64/bits/wordsize.h

index 014786fb4c800fc0fdf8ac2c43329ca14ff2722a..8ebc3c4f1c4bcf56dfc558c73cddb144dcd47fc8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
+       Don't define if [__SYSCALL_WORDSIZE != 32].
+       * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
+       New macro.
+
 2012-05-21  Bruno Haible  <bruno@clisp.org>
            Andreas Jaeger  <aj@suse.de>
 
index 4b3fc5733e0bbba6057b69c54767ce41e7c8dab4..d835dff0193aae4344cc7b5bab5267364cfb9b16 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997,1998,2000,2001,2002,2006 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -21,7 +21,8 @@
 
 #include <bits/types.h>  /* For __fsblkcnt_t and __fsfilcnt_t.  */
 
-#if __WORDSIZE == 32
+#if (__WORDSIZE == 32 \
+     && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
 #define _STATVFSBUF_F_UNUSED
 #endif
 
index 9b38756fd58a4f78712ac0e74b2ffe531c7b0618..e4d5fe71ef968a6b5d63aa8924de18019833bfcd 100644 (file)
@@ -6,3 +6,8 @@
 #else
 # define __WORDSIZE    32
 #endif
+
+#ifdef __x86_64__
+/* Both x86-64 and x32 use the 64-bit system call interface.  */
+# define __SYSCALL_WORDSIZE            64
+#endif