summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2010-01-03 02:46:11 +0000
committerPeter Johnson <peter@tortall.net>2010-01-03 02:46:11 +0000
commite8ff41cac1359b606071945245a6d0dc91e95edc (patch)
treec8de87f69923987c0b3b93e25d1885e532b64e7e
parent5ce81be7fe3524f25234923e8d168f39e02e20a2 (diff)
downloadyasm-e8ff41cac1359b606071945245a6d0dc91e95edc.tar.gz
Fix two more instances of queue.h HEAD macros for portability.
svn path=/trunk/yasm/; revision=2262
-rw-r--r--libyasm/file.c2
-rw-r--r--libyasm/inttree.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/libyasm/file.c b/libyasm/file.c
index fa225af0..128934a8 100644
--- a/libyasm/file.c
+++ b/libyasm/file.c
@@ -455,7 +455,7 @@ typedef struct incpath {
/*@owned@*/ char *path;
} incpath;
-STAILQ_HEAD(, incpath) incpaths = STAILQ_HEAD_INITIALIZER(incpaths);
+STAILQ_HEAD(incpath_head, incpath) incpaths = STAILQ_HEAD_INITIALIZER(incpaths);
FILE *
yasm_fopen_include(const char *iname, const char *from, const char *mode,
diff --git a/libyasm/inttree.c b/libyasm/inttree.c
index 382a5981..a7739fb1 100644
--- a/libyasm/inttree.c
+++ b/libyasm/inttree.c
@@ -492,7 +492,8 @@ void
IT_destroy(IntervalTree *it)
{
IntervalTreeNode *x = it->root->left;
- SLIST_HEAD(, nodeent) stuffToFree = SLIST_HEAD_INITIALIZER(stuffToFree);
+ SLIST_HEAD(node_head, nodeent)
+ stuffToFree = SLIST_HEAD_INITIALIZER(stuffToFree);
struct nodeent {
SLIST_ENTRY(nodeent) link;
struct IntervalTreeNode *node;