$NetBSD$

--- support.cc.orig	2004-01-12 03:06:18.000000000 -0600
+++ support.cc
@@ -78,7 +78,7 @@ extern char *chop(char *string) {
   return string;
 }
 
-#ifndef HAVE_HTONS
+#if !defined(HAVE_HTONS) && !defined(htons)
 unsigned short htons(unsigned short n) {
   return (n%256)*256+n/256;
 }
