summaryrefslogtreecommitdiff
path: root/sys-libs/glibc/files/2.19/glibc-2.19-kernel-2.6.16-hide-pipe2.patch
blob: 2b9ccceced223929dd317c484487a57b2deddad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Remove the pipe2 symbol from libc.so, otherwise meson will pick it up.

This is a balance.  We decide not to strip all the O_CLOEXEC, otherwise
gtk+ will need to be patched.
Index: glibc-2.19/sysdeps/unix/make-syscalls.sh
===================================================================
--- glibc-2.19.orig/sysdeps/unix/make-syscalls.sh
+++ glibc-2.19/sysdeps/unix/make-syscalls.sh
@@ -131,6 +131,7 @@ emit_weak_aliases()
 	echo "	 echo 'libc_hidden_def ($name)'; \\"
 	;;
       *)
+	[ $name = pipe2 ] && continue
 	echo "	 echo 'weak_alias ($strong, $name)'; \\"
 	echo "	 echo 'libc_hidden_weak ($name)'; \\"
 	;;