Re: fix build on netbsd
On Dec 5, 2019 1:06 AM, Gilles Chehade wrote: > > On Wed, Dec 04, 2019 at 07:27:07PM -0600, Edgar Pettijohn wrote: > > diff --git a/openbsd-compat/openbsd-compat.h > > b/openbsd-compat/openbsd-compat.h > > index 6c73e5b5..c7af0135 100644 > > --- a/openbsd-compat/openbsd-compat.h > > +++ b/openbsd-compat/openbsd-compat.h > > @@ -122,7 +122,7 @@ int getpeereid(int , uid_t *, gid_t *); > > ??unsigned int arc4random(void); > > ??#endif > > > > -#if defined(HAVE_ARC4RANDOM_STIR) > > +#if !defined(HAVE_ARC4RANDOM_STIR) > > ??void arc4random_stir(void); > > ??#elif defined(HAVE_ARC4RANDOM) || defined(LIBRESSL_VERSION_NUMBER) > > ??/* Recent system/libressl implementation; no need for explicit stir */ > > > > with this, your build is fixed ? > > I've been fixing the .c part of openbsd-compat but haven't worked on the > .h part yet, will have look at it > Yes. Restarted from configure through make install and no problems. > > > -- > Gilles Chehade @poolpOrg > > https://www.poolp.org patreon: https://www.patreon.com/gilles >
Re: fix build on netbsd
On Wed, Dec 04, 2019 at 07:27:07PM -0600, Edgar Pettijohn wrote: > diff --git a/openbsd-compat/openbsd-compat.h > b/openbsd-compat/openbsd-compat.h > index 6c73e5b5..c7af0135 100644 > --- a/openbsd-compat/openbsd-compat.h > +++ b/openbsd-compat/openbsd-compat.h > @@ -122,7 +122,7 @@ int getpeereid(int , uid_t *, gid_t *); > ??unsigned int arc4random(void); > ??#endif > > -#if defined(HAVE_ARC4RANDOM_STIR) > +#if !defined(HAVE_ARC4RANDOM_STIR) > ??void arc4random_stir(void); > ??#elif defined(HAVE_ARC4RANDOM) || defined(LIBRESSL_VERSION_NUMBER) > ??/* Recent system/libressl implementation; no need for explicit stir */ > with this, your build is fixed ? I've been fixing the .c part of openbsd-compat but haven't worked on the .h part yet, will have look at it -- Gilles Chehade @poolpOrg https://www.poolp.orgpatreon: https://www.patreon.com/gilles
fix build on netbsd
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 6c73e5b5..c7af0135 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -122,7 +122,7 @@ int getpeereid(int , uid_t *, gid_t *); unsigned int arc4random(void); #endif -#if defined(HAVE_ARC4RANDOM_STIR) +#if !defined(HAVE_ARC4RANDOM_STIR) void arc4random_stir(void); #elif defined(HAVE_ARC4RANDOM) || defined(LIBRESSL_VERSION_NUMBER) /* Recent system/libressl implementation; no need for explicit stir */