Commit cd67cb14173b4329d4cb8c74ea88240e5e4bf2c3

Guillem Jover 2012-05-29T07:17:46

Use implicit <md5.h> from overlay instead explicit <bsd/md5.h> This was assuming an installed <bsd/md5.h> on the system, due to the build system not including -Iinclude/ anymore. Regression introduced in commit 901ed630fc64fca828e031bc8fa6780db9f05db1.

diff --git a/src/Makefile.am b/src/Makefile.am
index 61d7119..d0f07e0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -31,7 +31,7 @@ lib_LTLIBRARIES = libbsd.la
 
 hash/md5hl.c: $(srcdir)/hash/helper.c
 	$(MKDIR_P) hash
-	$(AM_V_GEN) sed -e 's:hashinc:bsd/md5.h:g' -e 's:HASH:MD5:g' $< > $@
+	$(AM_V_GEN) sed -e 's:hashinc:md5.h:g' -e 's:HASH:MD5:g' $< > $@
 
 libbsd_la_DEPENDENCIES = \
 	libbsd.map
diff --git a/src/hash/md5.c b/src/hash/md5.c
index 697183b..e60bbd9 100644
--- a/src/hash/md5.c
+++ b/src/hash/md5.c
@@ -19,7 +19,7 @@
 
 #include <sys/types.h>
 #include <string.h>
-#include <bsd/md5.h>
+#include <md5.h>
 
 #define PUT_64BIT_LE(cp, value) do {					\
 	(cp)[7] = (value) >> 56;					\