Index: tools/hhpcomp/chmc/chmc.c
===================================================================
--- tools/hhpcomp/chmc/chmc.c	(revision 68866)
+++ tools/hhpcomp/chmc/chmc.c	(working copy)
@@ -26,7 +26,7 @@
 #include <string.h>
 #include <assert.h>
 
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__APPLE__)
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
Index: tools/hhpcomp/lzx_compress/lz_nonslide.h
===================================================================
--- tools/hhpcomp/lzx_compress/lz_nonslide.h	(revision 68866)
+++ tools/hhpcomp/lzx_compress/lz_nonslide.h	(working copy)
@@ -16,7 +16,7 @@
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__APPLE__)
 typedef unsigned char           u_char;
 #endif
 
