1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Quick workaround for arm-wince build with Debian cross-compiler packages.

This commit is contained in:
Markus F.X.J. Oberhumer 2006-11-22 01:56:59 +01:00
parent ba4a686d1c
commit 16b9873fa8
2 changed files with 13 additions and 0 deletions

View File

@ -40,8 +40,16 @@
#if ((ACC_OS_WIN32 || ACC_OS_WIN64) && ACC_CC_MWERKS) && defined(__MSL__)
# undef HAVE_UTIME_H /* this pulls in <windows.h> */
#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"

View File

@ -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 *)
{