Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1622537 > unrolled thread
| Started by | Hauke Mehrtens <hauke@hauke-m.de> |
|---|---|
| First post | 2017-04-12 22:40 +0200 |
| Last post | 2017-04-17 19:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH resend 3/4] uapi glibc compat: Do not check for __USE_MISC Hauke Mehrtens <hauke@hauke-m.de> - 2017-04-12 22:40 +0200
Re: [PATCH resend 3/4] uapi glibc compat: Do not check for __USE_MISC David Miller <davem@davemloft.net> - 2017-04-17 19:00 +0200
| From | Hauke Mehrtens <hauke@hauke-m.de> |
|---|---|
| Date | 2017-04-12 22:40 +0200 |
| Subject | [PATCH resend 3/4] uapi glibc compat: Do not check for __USE_MISC |
| Message-ID | <tvxdw-UY-5@gated-at.bofh.it> |
__USE_MISC is glibc specific and not available in musl libc. Only do this check when glibc is used. This fixes a problem with musl libc. Acked-by: Mikko Rapeli <mikko.rapeli@iki.fi> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- include/uapi/linux/libc-compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h index 49a8cc3138ae..ce2fa8a4ced6 100644 --- a/include/uapi/linux/libc-compat.h +++ b/include/uapi/linux/libc-compat.h @@ -51,8 +51,8 @@ /* We have included libc headers... */ #if !defined(__KERNEL__) -/* Coordinate with glibc net/if.h header. */ -#if defined(_NET_IF_H) && defined(__USE_MISC) +/* Coordinate with libc net/if.h header. */ +#if defined(_NET_IF_H) && (!defined(__GLIBC__) || defined(__USE_MISC)) /* GLIBC headers included first so don't define anything * that would already be defined. */ -- 2.11.0
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2017-04-17 19:00 +0200 |
| Subject | Re: [PATCH resend 3/4] uapi glibc compat: Do not check for __USE_MISC |
| Message-ID | <txial-32H-1@gated-at.bofh.it> |
| In reply to | #1622537 |
From: Hauke Mehrtens <hauke@hauke-m.de> Date: Wed, 12 Apr 2017 22:31:02 +0200 > __USE_MISC is glibc specific and not available in musl libc. Only do > this check when glibc is used. This fixes a problem with musl libc. > > Acked-by: Mikko Rapeli <mikko.rapeli@iki.fi> > Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> You yourself introduce this problem in patch #1. The code before patch #1 was perfectly fine, as this code block only existing in an area protected by __GLIBC__. So you have to redo these patches such that you deal with all of the fallout from changing __GLIBC__ into !__KERNEL__ at the same time that you make that change. Thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web