Package: cloop-utils
Version: 2.02
Severity: minor
extract_compressed_fs requires some minor changes to run on Mac OS X.
It now compiles with the command:
gcc -Wall -lz -o extract_compressed_fs extract_compressed_fs.c
on Mac OS X 10.4.6. I don't think there's anything os version
specific in the changes.
(Sorry I didn't edit the makefile but I don't know how to
conditionalise it correctly for Mac OS X.)
It successfully extracted the KNOPPIX_FS ISO filesystem from the
5.0.1 DVD (EN).
Here is the patch:
$ diff -b -B -c extract_compressed_fs.c extract_compressed_fs.c~
*** extract_compressed_fs.c Sun Jun 4 03:32:50 2006
--- extract_compressed_fs.c~ Tue Oct 19 06:02:35 2004
***************
*** 8,26 ****
#include <errno.h>
#include <string.h>
#include <zlib.h>
-
#if defined(__FreeBSD__)
#include <sys/endian.h>
- #elif defined(__APPLE__)
- #include <architecture/byte_order.h>
- #endif
-
- #if defined(__FreeBSD__) || defined(__APPLE__)
#include <netinet/in.h>
typedef uint64_t loff_t;
- #endif
-
- #if defined(__FreeBSD__)
#ifndef be64toh
static __inline __uint64_t
__bswap64(__uint64_t _x)
--- 8,17 ----
***************
*** 37,48 ****
#else
#define be64toh(x)
#endif
-
#endif
-
#define __be64_to_cpu be64toh
- #elif defined(__APPLE__)
- #define __be64_to_cpu NXSwapBigLongLongToHost
#else
#include <asm/byteorder.h>
#endif
--- 27,34 ----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]