aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-03-06 09:54:36 +0000
committerOmar Polo <op@omarpolo.com>2024-03-07 09:03:17 +0100
commit276e064723bfdc81548950b752595183ea610800 (patch)
tree6d3a1d28021193a5ed227a970cf0d53cb0bccc92
parentinclude bootstrap too in the distribution tarball (diff)
downloadOpenSMTPD-276e064723bfdc81548950b752595183ea610800.tar.xz
OpenSMTPD-276e064723bfdc81548950b752595183ea610800.zip
add compat glue for EAI_OVERFLOW too
it's not always available on some old darwin versions, so apply a similar treatment that EAI_NODATA gets: re-define it as EAI_FAIL. See github issue <https://github.com/OpenSMTPD/OpenSMTPD/issues/1246>
-rw-r--r--openbsd-compat/defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/defines.h b/openbsd-compat/defines.h
index 2e209085..d8e39449 100644
--- a/openbsd-compat/defines.h
+++ b/openbsd-compat/defines.h
@@ -457,6 +457,10 @@ typedef uint16_t in_port_t;
#endif
/* end of chl */
+#ifndef EAI_OVERFLOW
+#define EAI_OVERFLOW EAI_FAIL
+#endif
+
#ifndef HAVE_FPARSELN
/*
* fparseln() specific operation flags.