diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-05-02 16:24:22 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-05-02 16:24:22 +0000 |
commit | 67b7c93971748e23254c2768545c15631fc111b9 (patch) | |
tree | c27a89b14a09d01bead559753ae2fad04296e032 /pm_config.in.h | |
parent | 62f18c5e354db1cd2584a6267ddbd9ac8bff80e4 (diff) | |
download | netpbm-mirror-67b7c93971748e23254c2768545c15631fc111b9.tar.gz netpbm-mirror-67b7c93971748e23254c2768545c15631fc111b9.tar.xz netpbm-mirror-67b7c93971748e23254c2768545c15631fc111b9.zip |
Fix unaligned memory access on Sparc
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1892 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'pm_config.in.h')
-rw-r--r-- | pm_config.in.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pm_config.in.h b/pm_config.in.h index 3e2f781c..d8e578a3 100644 --- a/pm_config.in.h +++ b/pm_config.in.h @@ -290,6 +290,16 @@ #endif #endif +/* UNALIGNED_OK means it's OK to do unaligned memory access, e.g. + loading an 8-byte word from an address that is not a multiple of 8. + On some systems, such an access causes a trap and a signal. +*/ + +#if defined(__sparc__) +# define UNALIGNED_OK 0 +#else +# define UNALIGNED_OK 1 +#endif /* CONFIGURE: Some systems seem to need more than standard program linkage |