On Sun, Oct 17, 2021 at 04:23:50PM +0200, Philipp wrote: > Hello > > I'm currently working on getting OpenSMTPD-portable build. During this > I found some missing includes.
It would help if you could describe the platform you are building on and show the compile errors. > > diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y > index 7de52a1c568..b1307c4daa6 100644 > --- a/usr.sbin/smtpd/parse.y > +++ b/usr.sbin/smtpd/parse.y > @@ -28,6 +28,8 @@ > #include <net/if.h> > #include <netinet/in.h> > > +#include <stdlib.h> > +#include <string.h> > #include <arpa/inet.h> > #include <ctype.h> > #include <errno.h> > diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c > index 3d5926efdad..9e88f150ae5 100644 > --- a/usr.sbin/smtpd/smtpctl.c > +++ b/usr.sbin/smtpd/smtpctl.c > @@ -27,6 +27,7 @@ > #include <err.h> > #include <errno.h> > #include <fts.h> > +#include <grp.h> > #include <inttypes.h> > #include <pwd.h> > #include <stdlib.h> > >