X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0b4143b387d7f6226b6eb54fd5865881609f8c6b..0b0d05a2c1b70071a903d6720558d78742ad202b:/tools/mkimage/src/mkimage.c

diff --git a/tools/mkimage/src/mkimage.c b/tools/mkimage/src/mkimage.c
index f3796acf0..7c0432bad 100644
--- a/tools/mkimage/src/mkimage.c
+++ b/tools/mkimage/src/mkimage.c
@@ -38,8 +38,8 @@
 
 #if defined(__BEOS__) || defined(__NetBSD__) || defined(__APPLE__)
 #include <inttypes.h>
+#include <sys/types.h>
 #endif
-
 #ifdef __WIN32__
 typedef unsigned int __u32;
 
@@ -142,6 +142,7 @@ table_entry_t comp_name[] = {
     {	IH_COMP_NONE,	"none",		"uncompressed",		},
     {	IH_COMP_BZIP2,	"bzip2",	"bzip2 compressed",	},
     {	IH_COMP_GZIP,	"gzip",		"gzip compressed",	},
+    {	IH_COMP_LZMA,	"lzma",		"lzma compressed",	},
     {	-1,		"",		"",			},
 };