From: Debian QA Group <packages@qa.debian.org>
Date: Fri, 12 Jul 2019 01:06:20 +0000
Subject: include missing headers to ensure proper declarations

mini_httpd uses several standard C functions without including the proper
headers needed to pick up their declarations.  One of these functions,
crypt(), returns a pointer.  Failure to include the header means the return
type is assumed to be an int, which means the pointer is implicitly cast to
an int, which loses data on 64-bit architectures.
Author: Steve Langasek <steve.langasek@ubuntu.com>
Last-Update: 2016-04-03Index: mini-httpd-1.23/htpasswd.c
===================================================================
---
 htpasswd.c   | 1 +
 mini_httpd.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/htpasswd.c b/htpasswd.c
index 31ac769..5a3ab8c 100644
--- a/htpasswd.c
+++ b/htpasswd.c
@@ -15,6 +15,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
+#include <crypt.h>
 
 #define LF 10
 #define CR 13
diff --git a/mini_httpd.c b/mini_httpd.c
index ed963f0..d5ce4fd 100644
--- a/mini_httpd.c
+++ b/mini_httpd.c
@@ -52,6 +52,8 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <dirent.h>
+#include <crypt.h>
+#include <grp.h>
 
 #include "port.h"
 #include "match.h"
