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:
parent
ba4a686d1c
commit
16b9873fa8
|
@ -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"
|
||||
|
|
|
@ -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 *)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user