mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Define __SYSCALL_WORDSIZE for x86-64
This commit is contained in:
@@ -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>
|
2012-05-21 Bruno Haible <bruno@clisp.org>
|
||||||
Andreas Jaeger <aj@suse.de>
|
Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
@@ -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.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
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. */
|
#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
|
#define _STATVFSBUF_F_UNUSED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -6,3 +6,8 @@
|
|||||||
#else
|
#else
|
||||||
# define __WORDSIZE 32
|
# define __WORDSIZE 32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __x86_64__
|
||||||
|
/* Both x86-64 and x32 use the 64-bit system call interface. */
|
||||||
|
# define __SYSCALL_WORDSIZE 64
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user