diff --git a/src/utils/llist.c b/src/utils/llist.c
index c56cdbda098b581c9d957aeebb7db9c1725ffdf0..2dc7781cccab7f2ca8decd373461ae7e42999d0b 100644 (file)
--- a/src/utils/llist.c
+++ b/src/utils/llist.c
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif /* HAVE_CONFIG_H */
+
#include "utils/llist.h"
#include <assert.h>
pthread_rwlock_rdlock(&iter->list->lock);
+ /* XXX: increment ref-cnt for this object?
+ * also: when letting an element take ownership of next and prev
+ * elements, this might be a fairly cheap way to implement a weak
+ * type of snapshotting */
+
obj = iter->elem->obj;
iter->elem = iter->elem->next;