From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: Missing size_t declaration in UAPI Date: Sat, 09 Nov 2019 13:27:30 +0100 Message-ID: <87d0e19qvh.fsf@mid.deneb.enyo.de> References: <04EB5627-FD42-4397-995B-FDF051CFCFB5@brauner.io> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org In-Reply-To: (Elichai Turkel's message of "Sat, 9 Nov 2019 13:52:11 +0200") To: Elichai Turkel Cc: Christian Brauner , linux-api@vger.kernel.org, libc-alpha List-Id: linux-api@vger.kernel.org * Elichai Turkel: > I'm proposing to move `linux/tools/include/nolibc/nolibc.h` to the > UAPI interface. > It would then be included in `linux/types.h` > Would love feedback before I work on a patch. I do not think nolibc.h is a good starting point. The header is pretty much incompatible with everything, including multiple translation units that include it, so including it from will not work. >>> Currently compiling the following program fails: >>> ``` >>> #include "linux/signal.h" >>> void main(void){} >>> ``` >>> Because of `./asm/signal.h:127:2: error: unknown type name =E2=80=98siz= e_t=E2=80=99`. >>> >>> I tried patching with `#include ` but there's a local file >>> with the same name overriding the include. is expected to be provided by the compiler. It's probably easier to fix your build environment.