Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1598780 > unrolled thread
| Started by | Hauke Mehrtens <hauke@hauke-m.de> |
|---|---|
| First post | 2017-03-12 23:10 +0100 |
| Last post | 2017-03-13 12:30 +0100 |
| 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 1/4] uapi glibc compat: add libc compat code when not build for kernel Hauke Mehrtens <hauke@hauke-m.de> - 2017-03-12 23:10 +0100
Re: [PATCH 1/4] uapi glibc compat: add libc compat code when not build for kernel Mikko Rapeli <mikko.rapeli@iki.fi> - 2017-03-13 12:30 +0100
| From | Hauke Mehrtens <hauke@hauke-m.de> |
|---|---|
| Date | 2017-03-12 23:10 +0100 |
| Subject | [PATCH 1/4] uapi glibc compat: add libc compat code when not build for kernel |
| Message-ID | <tkjQB-7HV-17@gated-at.bofh.it> |
Instead of checking if this header file is used in the glibc, check if iti is not used in kernel context, this way it will also work with other libc implementations like musl. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- include/uapi/linux/libc-compat.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h index 44b8a6bd5fe1..7c1fead03c50 100644 --- a/include/uapi/linux/libc-compat.h +++ b/include/uapi/linux/libc-compat.h @@ -48,8 +48,8 @@ #ifndef _UAPI_LIBC_COMPAT_H #define _UAPI_LIBC_COMPAT_H -/* We have included glibc headers... */ -#if defined(__GLIBC__) +/* We have included libc headers... */ +#if !defined(__KERNEL__) /* Coordinate with glibc net/if.h header. */ #if defined(_NET_IF_H) && defined(__USE_MISC) @@ -168,7 +168,7 @@ /* If we did not see any headers from any supported C libraries, * or we are being included in the kernel, then define everything * that we need. */ -#else /* !defined(__GLIBC__) */ +#else /* defined(__KERNEL__) */ /* Definitions for if.h */ #define __UAPI_DEF_IF_IFCONF 1 @@ -208,6 +208,6 @@ /* Definitions for xattr.h */ #define __UAPI_DEF_XATTR 1 -#endif /* __GLIBC__ */ +#endif /* __KERNEL__ */ #endif /* _UAPI_LIBC_COMPAT_H */ -- 2.11.0
[toc] | [next] | [standalone]
| From | Mikko Rapeli <mikko.rapeli@iki.fi> |
|---|---|
| Date | 2017-03-13 12:30 +0100 |
| Subject | Re: [PATCH 1/4] uapi glibc compat: add libc compat code when not build for kernel |
| Message-ID | <tkwkO-8ew-15@gated-at.bofh.it> |
| In reply to | #1598780 |
On Sun, Mar 12, 2017 at 11:00:36PM +0100, Hauke Mehrtens wrote: > Instead of checking if this header file is used in the glibc, check if > iti is not used in kernel context, this way it will also work with > other libc implementations like musl. > > Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Accked-by: Mikko Rapeli <mikko.rapeli@iki.fi> > --- > include/uapi/linux/libc-compat.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h > index 44b8a6bd5fe1..7c1fead03c50 100644 > --- a/include/uapi/linux/libc-compat.h > +++ b/include/uapi/linux/libc-compat.h > @@ -48,8 +48,8 @@ > #ifndef _UAPI_LIBC_COMPAT_H > #define _UAPI_LIBC_COMPAT_H > > -/* We have included glibc headers... */ > -#if defined(__GLIBC__) > +/* We have included libc headers... */ > +#if !defined(__KERNEL__) > > /* Coordinate with glibc net/if.h header. */ > #if defined(_NET_IF_H) && defined(__USE_MISC) > @@ -168,7 +168,7 @@ > /* If we did not see any headers from any supported C libraries, > * or we are being included in the kernel, then define everything > * that we need. */ > -#else /* !defined(__GLIBC__) */ > +#else /* defined(__KERNEL__) */ > > /* Definitions for if.h */ > #define __UAPI_DEF_IF_IFCONF 1 > @@ -208,6 +208,6 @@ > /* Definitions for xattr.h */ > #define __UAPI_DEF_XATTR 1 > > -#endif /* __GLIBC__ */ > +#endif /* __KERNEL__ */ > > #endif /* _UAPI_LIBC_COMPAT_H */ > -- > 2.11.0 >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web