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:
matthieu 2006-12-03 20:57:39 +00:00
parent dfa64e4aa5
commit 3ac80eece3
5 changed files with 8 additions and 3 deletions

View File

@ -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>
*/

View File

@ -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

View File

@ -130,7 +130,7 @@ SOFTWARE.
#endif /* vax */
#ifdef __arm32__
#if defined(__arm32__) || defined(__arm__) && defined(__OpenBSD__)
#define IMAGE_BYTE_ORDER LSBFirst

View File

@ -85,6 +85,9 @@
/* BSD i386 iopl */
#undef USE_I386_IOPL
/* OpenBSD/arm */
#undef USE_ARM32_MMAP
/* System is BSD-like */
#undef CSRG_BASED

View File

@ -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);