summaryrefslogtreecommitdiff
path: root/debian/patches/fix-autobuilders
blob: f97ba9781380ec0b8914f34871d5d8946f6733a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: 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
===================================================================
--- mini-httpd-1.23.orig/htpasswd.c
+++ mini-httpd-1.23/htpasswd.c
@@ -15,6 +15,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
+#include <crypt.h>
 
 #define LF 10
 #define CR 13
Index: mini-httpd-1.23/mini_httpd.c
===================================================================
--- mini-httpd-1.23.orig/mini_httpd.c
+++ mini-httpd-1.23/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"