From 543f32eb507da73590c7de2cf4e6be4a0b8282d8 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Sun, 13 Jan 2019 10:24:17 -0700
Subject: [PATCH] Add nameinfo defines

---
 src/header/netdb/mod.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/header/netdb/mod.rs b/src/header/netdb/mod.rs
index 116214510..aac67e1ee 100644
--- a/src/header/netdb/mod.rs
+++ b/src/header/netdb/mod.rs
@@ -117,6 +117,12 @@ pub const EAI_MEMORY: c_int = -10;
 pub const EAI_SYSTEM: c_int = -11;
 pub const EAI_OVERFLOW: c_int = -12;
 
+pub const NI_NUMERICHOST: c_int = 0x0001;
+pub const NI_NUMERICSERV: c_int = 0x0002;
+pub const NI_NOFQDN: c_int = 0x0004;
+pub const NI_NAMEREQD: c_int = 0x0008;
+pub const NI_DGRAM: c_int = 0x0010;
+
 static mut NETDB: c_int = 0;
 static mut NET_ENTRY: netent = netent {
     n_name: ptr::null_mut(),
-- 
GitLab