Build fixes for OpenBSD/zaurus:
- __arm32__ isn't defined by gcc on OpenBSD/arm - ioperm_noop.c is needed in libxorgos
This commit is contained in:
parent
dfa64e4aa5
commit
3ac80eece3
@ -911,7 +911,7 @@ static __inline__ void stw_u(unsigned long val, unsigned short *p)
|
||||
# else
|
||||
# define PORT_SIZE short
|
||||
# endif
|
||||
# if defined(__arm32__) && defined(__OpenBSD__)
|
||||
# if defined(__arm__) && defined(__OpenBSD__)
|
||||
/*
|
||||
# include <machine/sysarch.h>
|
||||
*/
|
||||
|
@ -30,7 +30,8 @@ ARCH_SOURCES = \
|
||||
endif
|
||||
|
||||
if ARM_VIDEO
|
||||
ARCH_SOURCES = arm_video.c
|
||||
ARCH_SOURCES = arm_video.c \
|
||||
$(srcdir)/../shared/ioperm_noop.c
|
||||
endif
|
||||
|
||||
if HP300_VIDEO
|
||||
|
@ -130,7 +130,7 @@ SOFTWARE.
|
||||
|
||||
#endif /* vax */
|
||||
|
||||
#ifdef __arm32__
|
||||
#if defined(__arm32__) || defined(__arm__) && defined(__OpenBSD__)
|
||||
|
||||
#define IMAGE_BYTE_ORDER LSBFirst
|
||||
|
||||
|
@ -85,6 +85,9 @@
|
||||
/* BSD i386 iopl */
|
||||
#undef USE_I386_IOPL
|
||||
|
||||
/* OpenBSD/arm */
|
||||
#undef USE_ARM32_MMAP
|
||||
|
||||
/* System is BSD-like */
|
||||
#undef CSRG_BASED
|
||||
|
||||
|
@ -341,6 +341,7 @@ Xalloc (unsigned long amount)
|
||||
defined(__mips__) || \
|
||||
defined(__powerpc__) || \
|
||||
defined(__arm32__) || \
|
||||
defined(__arm__) && defined(__OpenBSD__) || \
|
||||
defined(__ia64__) || defined(ia64) || \
|
||||
defined(__s390x__) || defined(__s390__)
|
||||
amount = (amount + (sizeof(long)-1)) & ~(sizeof(long)-1);
|
||||
|
Loading…
Reference in New Issue
Block a user