Index: proxy/buildall.sh =================================================================== --- proxy/buildall.sh (revision 74) +++ proxy/buildall.sh (working copy) @@ -1,7 +1,7 @@ -#!/bin/sh -cat targets.txt | ( - while read target model - do - make MODEL=$model TARGET=$target build - done -) +#!/bin/sh +cat targets.txt | ( + while read target model + do + make MODEL=$model TARGET=$target build + done +) Index: proxy/Makefile =================================================================== --- proxy/Makefile (revision 74) +++ proxy/Makefile (working copy) @@ -63,7 +63,7 @@ -I $(ROOT)/apps \ -I src -CFLAGS = -g -D__PCTOOL__ -D__QDEBUG__ -DQT_READBMP -DDEBUG -DROCKBOX_DIR_LEN=1 -DBUTTON_REMOTE +CFLAGS = -g -Wall -D__PCTOOL__ -D__QDEBUG__ -DQT_READBMP -DDEBUG -DROCKBOX_DIR_LEN=1 -DBUTTON_REMOTE all: @echo To build, run the buildall.sh script @@ -76,7 +76,7 @@ build-linux: src/proxy.c $(COMMON) @echo CC [$(TARGET)] - @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" $(COMMON) src/proxy.c -fPIC -o proxy_$(MODEL).o -Wl,"-soname libproxy_$(MODEL).so.1,-olibproxy_$(MODEL).so.1" + @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" -shared -Wl,-soname,libproxy_$(MODEL).so,-olibproxy_$(MODEL).so -fPIC $(COMMON) src/proxy.c clean: clean-$(OS) @@ -95,5 +95,5 @@ shared-linux: src/proxy.c $(COMMON) @echo CC [IRIVER_H10_5GB] - @$(CC) $(INCLUDE) $(CFLAGS) -DIRIVER_H10_5GB -DTARGET_MODEL=\"h10_5gb\" $(COMMON) src/proxy.c -fPIC -o proxy.o -Wl,"-soname libproxy.so.1,-olibproxy.so.1" - @$(COPY) libproxy.so.1 ../gui/bin/libproxy.so.1 + @$(CC) $(INCLUDE) $(CFLAGS) -DIRIVER_H10_5GB -DTARGET_MODEL=\"h10_5gb\" -shared -Wl,-soname,libproxy.so,-olibproxy.so -fPIC $(COMMON) src/proxy.c + @$(COPY) libproxy.so ../gui/bin/libproxy.so Index: proxy/src/api.h =================================================================== --- proxy/src/api.h (revision 74) +++ proxy/src/api.h (working copy) @@ -4,6 +4,9 @@ #include #include "defs.h" #include "wpsstate.h" +#ifdef __PCTOOL__ +#include "dummies.h" +#endif struct viewport_api { int x; Index: proxy/src/checkwps.c =================================================================== --- proxy/src/checkwps.c (revision 74) +++ proxy/src/checkwps.c (working copy) @@ -3,7 +3,7 @@ bool debug_wps = true; int wps_verbose_level = 0; -int errno; +int _errno; pfdebugf dbgf = 0; static char pluginbuf[PLUGIN_BUFFER_SIZE]; @@ -49,7 +49,7 @@ int count = 0; int num_read = 0; - errno = 0; + _errno = 0; while (count < buffer_size) { @@ -71,7 +71,7 @@ buffer[MIN(count, buffer_size - 1)] = 0; - return errno ? -1 : num_read; + return _errno ? -1 : num_read; } void* plugin_get_buffer(size_t *buffer_size)