diff -Naur old/libfs/devices.h new/libfs/devices.h
--- old/libfs/devices.h	2005-11-23 07:43:55.000000000 +1100
+++ new/libfs/devices.h	2013-01-06 11:30:25.381538024 +1100
@@ -40,6 +40,8 @@
 #define ERROR_INVALID_PARAMETER	87
 #define ERROR_DISK_FULL		112
 
+#include <inttypes.h>
+
 struct stat;
 
 int ujfs_get_dev_size(FILE *, int64_t * size);
