> Date: Mon, 31 Jul 2023 22:29:29 +0100 > From: Robert Swindells <r...@fdy2.co.uk> > > Theodore Preduta <t...@pta.gg> wrote: > > This comes somewhat as a "part 2" to > > https://mail-index.netbsd.org/tech-kern/2023/06/21/msg028926.html > > > > Given the responses to that thread, I decided to add native stubs > > for epoll (the fact epoll is widespread alone justifies it, but it has > > already had some negative side effects, see: > > https://mail-index.netbsd.org/source-changes-d/2023/07/30/msg013999.html). > > What is wrong with the suggestion in the thread on tech-userlevel@ to > just rename the header so that userland won't find it when configuring > packages?
It is necessary but not sufficient. Autoconf and other things will check for the symbol in libc, irrespective of whether there is a header file or a declaration in a header file. We need to remove the symbol in libc too.