[PATCH] Fix compilation with musl libc

Felix Janda <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <20161231080818.GA26117@nyan>
* libmailutils/sockaddr/str.c: Include stdlib.h for NULL
---
 libmailutils/sockaddr/str.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libmailutils/sockaddr/str.c b/libmailutils/sockaddr/str.c
index e5bd5a1..6de2647 100644
--- a/libmailutils/sockaddr/str.c
+++ b/libmailutils/sockaddr/str.c
@@ -25,6 +25,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
+#include <stdlib.h>
 
 #include <mailutils/sockaddr.h>
 #include <mailutils/errno.h>
-- 
2.10.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.