Fix portability issues affecting non-glibc systems.

---
 nsswitch/wins.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/nsswitch/wins.c b/nsswitch/wins.c
index 371ab78d2f87..f2b417f2bb61 100644
--- a/nsswitch/wins.c
+++ b/nsswitch/wins.c
@@ -22,6 +22,13 @@
 #include "nsswitch/winbind_client.h"
 #include "nsswitch/libwbclient/wbclient.h"
 
+#ifndef NETDB_SUCCESS
+#define NETDB_SUCCESS 0
+#endif
+#ifndef NETDB_INTERNAL
+#define NETDB_INTERNAL -1
+#endif
+
 #ifdef HAVE_NS_API_H
 
 #include <ns_daemon.h>
