summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrbutil/Makefile.macosx2
-rw-r--r--rbutil/sansapatcher/main.c2
-rw-r--r--rbutil/sansapatcher/sansapatcher.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/rbutil/Makefile.macosx b/rbutil/Makefile.macosx
index caf383f..2914939 100755
--- a/rbutil/Makefile.macosx
+++ b/rbutil/Makefile.macosx
@@ -44,7 +44,7 @@ DESTDIR =
WX_RELEASE = 2.8
WX_VERSION = $(WX_RELEASE).0
LIBDIRNAME = $(wx_top_builddir)/lib
-RBUTIL_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
+RBUTIL_CXXFLAGS = -DRBUTIL -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
$(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
-I$(srcdir) $(__DLLFLAG_p) $(CPPFLAGS) $(CXXFLAGS)
RBUTIL_OBJECTS = \
diff --git a/rbutil/sansapatcher/main.c b/rbutil/sansapatcher/main.c
index f8b8723..4f2a5fe 100644
--- a/rbutil/sansapatcher/main.c
+++ b/rbutil/sansapatcher/main.c
@@ -32,6 +32,8 @@
#define VERSION "0.2 with r12896 bootloader"
+unsigned char* sectorbuf;
+
int verbose = 0;
enum {
diff --git a/rbutil/sansapatcher/sansapatcher.c b/rbutil/sansapatcher/sansapatcher.c
index 310f312..3f25762 100644
--- a/rbutil/sansapatcher/sansapatcher.c
+++ b/rbutil/sansapatcher/sansapatcher.c
@@ -42,7 +42,7 @@ extern int verbose;
and initialise it with sansa_alloc_buf() in main().
*/
-unsigned char* sectorbuf;
+extern unsigned char* sectorbuf;
static off_t filesize(int fd) {
struct stat buf;