db->depth = 0;
memset(&db->state, 0, sizeof(db->state));
- db->state[0].entry = &(cj_tree_entry_t){
- .type = TREE, .tree = db->tree,
- };
+
+ /* This is not a compound literal because EPEL6's GCC is not cool enough to
+ * handle anonymous unions within compound literals. */
+ cj_tree_entry_t root = {0};
+ root.type = TREE;
+ root.tree = db->tree;
+ db->state[0].entry = &root;
int status = cj_perform(db);
assert(cj_append_key(db, key) == 0);
- db->state[0].entry = &(cj_tree_entry_t){
- .type = TREE, .tree = db->tree,
- };
+ cj_tree_entry_t root = {0};
+ root.type = TREE;
+ root.tree = db->tree;
+ db->state[0].entry = &root;
cj_curl_callback(json, strlen(json), 1, db);
#if HAVE_YAJL_V2