  }
  
 diff --git a/squashfs-tools/unsquashfs_xattr.c b/squashfs-tools/unsquashfs_xattr.c
-index 7742dfe..26ccd39 100644
+index 7742dfe..f8cd3b6 100644
 --- a/squashfs-tools/unsquashfs_xattr.c
 +++ b/squashfs-tools/unsquashfs_xattr.c
 @@ -27,6 +27,11 @@

+		ERROR_EXIT("  Defaulting to least viable amount\n");
+		phys_mem = SQUASHFS_LOWMEM;
+	}
+	#undef SYSCTL_PHYSMEM
+#else
 	/*
 	 * Long longs are used here because with PAE, a 32-bit
 	 * machine can have more than 4GB of physical memory
@@ -5193,7 +5228,6 @@ int get_physical_memory()
 	 */
 	long long num_pages = sysconf(_SC_PHYS_PAGES);
 	long long page_size = sysconf(_SC_PAGESIZE);
-	int phys_mem;
 
 	if(num_pages == -1 || page_size == -1) {
 		struct sysinfo sys;
@@ -5207,6 +5241,7 @@ int get_physical_memory()
 	}
 
 	phys_mem = num_pages * page_size >> 20;

 
 /*
diff --git a/squashfs-tools/info.c b/squashfs-tools/info.c
index fe23d78..5c2f835 100644
--- a/squashfs-tools/info.c
+++ b/squashfs-tools/info.c
@@ -144,31 +144,22 @@ void dump_state()
