summaryrefslogtreecommitdiff
path: root/babeld/source.c
diff options
context:
space:
mode:
Diffstat (limited to 'babeld/source.c')
-rw-r--r--babeld/source.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/babeld/source.c b/babeld/source.c
index d6dd848952..ed165b41b4 100644
--- a/babeld/source.c
+++ b/babeld/source.c
@@ -20,6 +20,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -59,7 +63,7 @@ find_source(const unsigned char *id, const unsigned char *p, unsigned char plen,
src = malloc(sizeof(struct source));
if(src == NULL) {
- flog_err(BABEL_ERR_MEMORY, "malloc(source): %s", safe_strerror(errno));
+ flog_err(EC_BABEL_MEMORY, "malloc(source): %s", safe_strerror(errno));
return NULL;
}