$NetBSD: patch-aa,v 1.1 2009/08/11 20:25:22 minskim Exp $

--- texk/web2c/luatexdir/luasocket/src/usocket.c.orig	2009-06-03 13:07:38.000000000 +0000
+++ texk/web2c/luatexdir/luasocket/src/usocket.c
@@ -13,7 +13,7 @@
 
 #include "socket.h"
 
-#if defined(__sun__)
+#if defined(__sun__) || defined(__sun)
 #define HSTRERROR(A) "unknown host error"
 #else
 #define HSTRERROR(A) hstrerror(A)
