patches/glibc/ports-2.13/410-alpha-SETPIPE-GETPIPE.patch
author "Bryan Hundven" <bryanhundven@gmail.com>
Thu Mar 01 15:23:49 2012 -0800 (2012-03-01)
changeset 2909 28ac8fbd9e6a
permissions -rw-r--r--
libg/eglibc: add updated eglibc 2.15

Includes a patch to remove __builtin_expect test:

In eglibc-2.15, the build breaks in configure while testing
for the existance of __builtin_expect. It fails with newer
versions of gcc.

This patch is a modification of an upstream change in glibc
mainline (to be 2.16) to fix the following error:

[CFG ] checking for __builtin_expect... no
[ERROR] configure: error: support for __builtin_expect needed

http://sourceware.org/git/?p=glibc.git;a=commit;h=3857022a761ea7251f8e5c0e45d382ebc3e34cf9

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: coalesce both patches into a single changeset]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
     2 
     3 	* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETPIPE_SZ,
     4 	F_GETPIPE_SZ): Define.
     5 
     6 diff --git glibc-2.13/glibc-ports-2.13/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h glibc-2.13/glibc-ports-2.13/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
     7 index 860e9ac..e5e726b 100644
     8 --- glibc-2.13/glibc-ports-2.13/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
     9 +++ glibc-2.13/glibc-ports-2.13/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
    10 @@ -97,6 +97,8 @@
    11  # define F_SETLEASE	1024	/* Set a lease.	 */
    12  # define F_GETLEASE	1025	/* Enquire what lease is active.  */
    13  # define F_NOTIFY	1026	/* Request notfications on a directory.	 */
    14 +# define F_SETPIPE_SZ	1031    /* Set pipe page size array.  */
    15 +# define F_GETPIPE_SZ	1032    /* Set pipe page size array.  */
    16  #endif
    17  #ifdef __USE_XOPEN2K8
    18  # define F_DUPFD_CLOEXEC 1030	/* Duplicate file descriptor with
    19