Remove warnings about strtonum(). Probably a better place for this, but not sure where.

diff --git a/openbsd-compat/defines.h b/openbsd-compat/defines.h
index 23fc8ae2..868943cd 100644
--- a/openbsd-compat/defines.h
+++ b/openbsd-compat/defines.h
@@ -491,4 +491,8 @@ typedef uint16_t    in_port_t;
 #define LOG_PERROR 0
 #endif

+#ifdef __NetBSD__
+#define _OPENBSD_SOURCE
+#endif
+
 #endif /* _DEFINES_H */

Remove warnings about errc()

diff --git a/openbsd-compat/errc.c b/openbsd-compat/errc.c
index 658a55b4..9132dcb9 100644
--- a/openbsd-compat/errc.c
+++ b/openbsd-compat/errc.c
@@ -21,6 +21,7 @@
 #include "includes.h"

 #ifndef HAVE_ERRC
+#define HAVE_ERRC

 #include <errno.h>
 #include <stdarg.h>

Remove warnings about strtonum()

diff --git a/smtpd/smtp_client.c b/smtpd/smtp_client.c
index 22e79890..70241b0b 100644
--- a/smtpd/smtp_client.c
+++ b/smtpd/smtp_client.c
@@ -16,6 +16,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */

+#include "includes.h"
+
 #include <sys/types.h>
 #include <sys/socket.h>


Remove warnings about err()


diff --git a/smtpd/util.c b/smtpd/util.c
index eec3a303..5aa08413 100644
--- a/smtpd/util.c
+++ b/smtpd/util.c
@@ -32,6 +32,7 @@
 #include <arpa/inet.h>

 #include <ctype.h>
+#include <err.h>
 #include <errno.h>
 #include <event.h>
 #include <fcntl.h>


Reply via email to