--- ./mDNSPosix/nss_mdns.c
+++ ./mDNSPosix/nss_mdns.c
@@ -379,7 +379,19 @@
 #define ENTNAME  hostent
 #define DATABASE "hosts"
 
+#ifdef __GLIBC__
 #include <nss.h>
+#else
+enum nss_status
+{
+    NSS_STATUS_TRYAGAIN = -2,
+    NSS_STATUS_UNAVAIL,
+    NSS_STATUS_NOTFOUND,
+    NSS_STATUS_SUCCESS,
+    NSS_STATUS_RETURN
+};
+#define NETDB_INTERNAL NULL
+#endif
 // For nss_status
 #include <netdb.h>
 // For hostent
