Commit Diff


commit - 685f459352825cbafb23977135e4efe2f7008f6a
commit + 8baf059b5b2327078ac5536a605ad2112a00bafd
blob - 8b139fc89dfdbbe5966fbb569b781ef870a47061
blob + ebb7e3608ad72ede8057117a4f13d564010ac8db
--- include/got_compat.h
+++ include/got_compat.h
@@ -66,6 +66,13 @@
 #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