Re: Patch to fix build with newer GCC
"Andy Bradford" <[email protected]> 28 Jun 2022 22:18:41 -0600
| Newsgroups | gmane.comp.djb.cdb |
|---|---|
| Message-ID | <[email protected]> |
Thus said =22daniel.nachun=40gmail.com=22 on Tue, 28 Jun 2022 11:37:57 -0= 700: > The failure occurred because in newer GCC compilers, errno.h must be > explicitly included, and I have attached the patch we used to fix it. The alternative is to modify a single file (conf-cc): --- conf-cc.orig Tue Jun 28 22:17:21 2022 +++ conf-cc Thu Dec 1 13:12:42 2016 =40=40 -1,3 +1,3 =40=40 -gcc -O2 +gcc -O2 -include /usr/include/errno.h =20 This will be used to compile .c files. Of course this may not fit with your build environment, but it's all I ever do since it's a minimal change. Andy