Index: sockstat-0.3/sockstat.c
===================================================================
--- sockstat-0.3.orig/sockstat.c	2009-06-04 11:34:59.051534157 +0800
+++ sockstat-0.3/sockstat.c	2009-06-04 11:35:27.283531833 +0800
@@ -41,6 +41,7 @@
 #include <pwd.h>
 #include <grp.h>
 #include <assert.h>
+#include <limits.h>
 
 #define SEARCH_ALL     0x00
 #define SEARCH_GID     0x01
