committed by
Leonid Plyushch
5 changed files with 92 additions and 17 deletions
@ -0,0 +1,11 @@ |
|||
--- sysroot.orig/usr/include/bits/ioctl.h 2019-07-30 14:11:49.196931147 -0400
|
|||
+++ sysroot/usr/include/bits/ioctl.h 2019-07-30 14:12:44.446936650 -0400
|
|||
@@ -55,7 +55,7 @@
|
|||
* - defining BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD, which will make the |
|||
* overloading go away. |
|||
*/ |
|||
-#if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
|
|||
+#if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD) && defined(__clang__)
|
|||
/* enable_if(1) just exists to break overloading ties. */ |
|||
int ioctl(int __fd, unsigned __request, ...) __overloadable __enable_if(1, "") __RENAME(ioctl); |
|||
#endif |
@ -0,0 +1,11 @@ |
|||
--- sysroot.orig/usr/include/string.h 2019-07-30 14:11:49.196931147 -0400
|
|||
+++ sysroot/usr/include/string.h 2019-07-30 14:12:44.446936650 -0400
|
|||
@@ -188,7 +188,7 @@
|
|||
#endif |
|||
|
|||
/* Const-correct overloads. Placed after FORTIFY so we call those functions, if possible. */ |
|||
-#if defined(__cplusplus)
|
|||
+#if defined(__cplusplus) && defined(__clang__)
|
|||
/* |
|||
* Use two enable_ifs so these overloads don't conflict with + are preferred over libcxx's. This can |
|||
* be reduced to 1 after libcxx recognizes that we have const-correct overloads. |
Loading…
Reference in new issue