2003-01-03 Jitendra Vegiraju <jvegiraju@netscape.net>

* sys/queue.h: Fix alignment problem on ARM.
This commit is contained in:
Joel Sherrill
2003-01-03 20:40:29 +00:00
parent 1292ba4654
commit 6bd96fc7ab
2 changed files with 14 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2003-01-03 Jitendra Vegiraju <jvegiraju@netscape.net>
* sys/queue.h: Fix alignment problem on ARM.
2002-11-26 Chris Johns <cjohns@cybertec.com.au>
* Makefile.am: Added sys/linker_set.h

View File

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