* Added a bunch of preprocessor hacks to deal with certain
authorArt Cancro <ajc@citadel.org>
Thu, 5 Apr 2007 16:30:37 +0000 (16:30 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 5 Apr 2007 16:30:37 +0000 (16:30 +0000)
  declarations missing from nameser.h on openbsd

citadel/locate_host.c

index 68eb64dd07e56a0e86bb19b8476e0f0beff27a9c..da0594df489b9ea4375f21ec9d39a8a2db790164 100644 (file)
 #endif
 
 
+/* Hacks to work around nameser.h declarations missing on OpenBSD
+ * see also: http://search.cpan.org/src/MIKER/Net-DNS-ToolKit-0.30/ToolKit.h
+ */
+
+#ifndef NS_INT16SZ
+# ifdef INT16SZ
+#  define NS_INT16SZ INT16SZ
+# endif
+#endif
+
+#ifndef NS_INT32SZ
+# ifdef INT32SZ
+#  define NS_INT32SZ INT32SZ
+# endif
+#endif
+
+#ifndef NS_GET16
+# ifdef GETSHORT
+#  define NS_GET16 GETSHORT
+# endif
+#endif
+
+
+/***************************************************************************/
+
+
 void locate_host(char *tbuf, size_t n,
                char *abuf, size_t na,
                const struct in_addr *addr)