commit - c4e2e0d08cd12c6197fc87034fe559fc4d6b3ef5
commit + 2fcd7106f2aa3a29b122a3b91fb27e0ffdb00a8c
blob - b8914eb75bc7cd4463424b4ee909c88e2edc2262
blob + abc05f1eec66c9406b7c98b48d1579c2934bff89
--- include/got_compat.h
+++ include/got_compat.h
#define SOCK_NONBLOCK 00004000
#endif
+/* On FreeBSD (and possibly others), EAI_NODATA was removed, in favour of
+ * using EAI_NONAME.
+ */
+#ifndef EAI_NODATA
+#define EAI_NODATA EAI_NONAME
+#endif
+
#ifndef __dead
#define __dead __attribute__ ((__noreturn__))
#endif