-#define _GNU_SOURCE
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <string.h>
#include <talloc/talloc.h>
if (!pxe_conf_files)
goto out_conf;
+ rc = -1;
+
for (filename = pxe_conf_files; *filename; filename++) {
url = pb_url_join(dc, conf_url, *filename);
if (!url)