diff options
author | Dave Chapman <dave@dchapman.com> | 2007-05-03 21:05:24 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-05-03 21:05:24 +0000 |
commit | 0658dce706b19c1fd15e29e71a8de5eb7e85bf42 (patch) | |
tree | 55a5e50df8187dab2c9ae4b3f129a943a9678d83 | |
parent | dde262b58a8bb908278179e916e0d91068d6987f (diff) | |
download | rockbox-0658dce706b19c1fd15e29e71a8de5eb7e85bf42.tar.gz rockbox-0658dce706b19c1fd15e29e71a8de5eb7e85bf42.zip |
Make rbutil compile on Mac OS X
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13316 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | rbutil/Makefile.macosx | 2 | ||||
-rw-r--r-- | rbutil/sansapatcher/main.c | 2 | ||||
-rw-r--r-- | rbutil/sansapatcher/sansapatcher.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/rbutil/Makefile.macosx b/rbutil/Makefile.macosx index caf383f7f4..2914939418 100755 --- a/rbutil/Makefile.macosx +++ b/rbutil/Makefile.macosx | |||
@@ -44,7 +44,7 @@ DESTDIR = | |||
44 | WX_RELEASE = 2.8 | 44 | WX_RELEASE = 2.8 |
45 | WX_VERSION = $(WX_RELEASE).0 | 45 | WX_VERSION = $(WX_RELEASE).0 |
46 | LIBDIRNAME = $(wx_top_builddir)/lib | 46 | LIBDIRNAME = $(wx_top_builddir)/lib |
47 | RBUTIL_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | 47 | RBUTIL_CXXFLAGS = -DRBUTIL -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
48 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ | 48 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ |
49 | -I$(srcdir) $(__DLLFLAG_p) $(CPPFLAGS) $(CXXFLAGS) | 49 | -I$(srcdir) $(__DLLFLAG_p) $(CPPFLAGS) $(CXXFLAGS) |
50 | RBUTIL_OBJECTS = \ | 50 | RBUTIL_OBJECTS = \ |
diff --git a/rbutil/sansapatcher/main.c b/rbutil/sansapatcher/main.c index f8b8723300..4f2a5fe226 100644 --- a/rbutil/sansapatcher/main.c +++ b/rbutil/sansapatcher/main.c | |||
@@ -32,6 +32,8 @@ | |||
32 | 32 | ||
33 | #define VERSION "0.2 with r12896 bootloader" | 33 | #define VERSION "0.2 with r12896 bootloader" |
34 | 34 | ||
35 | unsigned char* sectorbuf; | ||
36 | |||
35 | int verbose = 0; | 37 | int verbose = 0; |
36 | 38 | ||
37 | enum { | 39 | enum { |
diff --git a/rbutil/sansapatcher/sansapatcher.c b/rbutil/sansapatcher/sansapatcher.c index 310f312052..3f25762a14 100644 --- a/rbutil/sansapatcher/sansapatcher.c +++ b/rbutil/sansapatcher/sansapatcher.c | |||
@@ -42,7 +42,7 @@ extern int verbose; | |||
42 | and initialise it with sansa_alloc_buf() in main(). | 42 | and initialise it with sansa_alloc_buf() in main(). |
43 | */ | 43 | */ |
44 | 44 | ||
45 | unsigned char* sectorbuf; | 45 | extern unsigned char* sectorbuf; |
46 | 46 | ||
47 | static off_t filesize(int fd) { | 47 | static off_t filesize(int fd) { |
48 | struct stat buf; | 48 | struct stat buf; |