diff -urN a/extensions/lt-ext-ldml-u.c b/extensions/lt-ext-ldml-u.c
@@ -17,6 +17,7 @@
#include "lt-stdint.h"
#include <string.h>
+#include <stdlib.h>
#include <libxml/xpath.h>
#include "lt-error.h"
#include "lt-ext-module.h"
diff -urN a/liblangtag/lt-tag.c b/liblangtag/lt-tag.c
@@ -19,6 +19,7 @@
#include <ctype.h>
#include <locale.h>
#include <string.h>
+#include <stdlib.h>
#include <libxml/xpath.h>
#include "lt-config.h"
#include "lt-database.h"
diff -urN a/liblangtag/lt-xml.c b/liblangtag/lt-xml.c
@@ -16,6 +16,7 @@
#include <stddef.h>
#include <string.h>
+#include <stdlib.h>
#include <sys/stat.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>