diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-01-03 20:40:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-01-03 20:40:29 +0000 |
commit | 6bd96fc7abe950c9547c6e552c3b5067bedaf7c4 (patch) | |
tree | dcd89ac49950ba084823c76ba36d520a0c459ad3 /cpukit/libnetworking/sys | |
parent | 2003-01-03 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-6bd96fc7abe950c9547c6e552c3b5067bedaf7c4.tar.bz2 |
2003-01-03 Jitendra Vegiraju <jvegiraju@netscape.net>
* sys/queue.h: Fix alignment problem on ARM.
Diffstat (limited to 'cpukit/libnetworking/sys')
-rw-r--r-- | cpukit/libnetworking/sys/queue.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cpukit/libnetworking/sys/queue.h b/cpukit/libnetworking/sys/queue.h index 75ad0aa90e..db0f2dd804 100644 --- a/cpukit/libnetworking/sys/queue.h +++ b/cpukit/libnetworking/sys/queue.h @@ -564,13 +564,19 @@ struct { \ * They bogusly assumes that all queue heads look alike. */ -struct quehead { - struct quehead *qh_link; - struct quehead *qh_rlink; -}; #ifdef __GNUC__ +struct quehead { +#if defined(__arm__) + struct quehead *qh_link __attribute__((packed)); + struct quehead *qh_rlink __attribute__((packed)); +#else /* !defined(__arm__)) */ + struct quehead *qh_link; + struct quehead *qh_rlink; +#endif +}; + static __inline void insque(void *a, void *b) { |