diff --git a/src/conf.h b/src/conf.h index 3d640bb5..1ac024c8 100644 --- a/src/conf.h +++ b/src/conf.h @@ -40,8 +40,16 @@ #if ((ACC_OS_WIN32 || ACC_OS_WIN64) && ACC_CC_MWERKS) && defined(__MSL__) # undef HAVE_UTIME_H /* this pulls in */ #endif +// FIXME - quick hack for arm-wince-gcc-3.4 (Debian pocketpc*.deb packages) +#if 1 && (ACC_ARCH_ARM) && defined(__pe__) +# undef HAVE_CHMOD +# undef HAVE_CHOWN +# undef HAVE_LSTAT +# undef HAVE_UTIME +#endif +// pragmas #if (ACC_CC_BORLANDC) # if (__BORLANDC__ < 0x0500) # error "need Borland C++ 5.0 or newer" diff --git a/src/util.cpp b/src/util.cpp index 1e7ef702..448a9e21 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -577,6 +577,11 @@ unsigned get_ratio(unsigned u_len, unsigned c_len) extern "C" { +// FIXME - quick hack for arm-wince-gcc-3.4 (Debian pocketpc*.deb packages) +#if 1 && (ACC_ARCH_ARM) && defined(__pe__) +int dup(int fd) { UNUSED(fd); return -1; } +#endif + #if defined(__DJGPP__) int _is_executable(const char *, int, const char *) {