Modernize the build system.
[tinc] / src / fake-gai-errnos.h
diff --git a/src/fake-gai-errnos.h b/src/fake-gai-errnos.h
new file mode 100644 (file)
index 0000000..4ffabb6
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * fake library for ssh
+ *
+ * This file is included in getaddrinfo.c and getnameinfo.c.
+ * See getaddrinfo.c and getnameinfo.c.
+ */
+
+/* for old netdb.h */
+#ifndef EAI_NODATA
+#define EAI_NODATA     1
+#endif
+
+#ifndef EAI_MEMORY
+#define EAI_MEMORY     2
+#endif
+
+#ifndef EAI_FAMILY
+#define EAI_FAMILY     3
+#endif