summaryrefslogtreecommitdiff
path: root/network/bozohttpd/fix_warnings.diff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-29 17:07:57 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-07 06:54:20 +0700
commit54488995e450374b6482006ee95722409a6e9264 (patch)
tree888897714c415696180eea332898ec909d0248ce /network/bozohttpd/fix_warnings.diff
parent27da7167c5dc089f703659fe386e5282b26e88ca (diff)
downloadslackbuilds-54488995e450374b6482006ee95722409a6e9264.tar.gz
network/bozohttpd: New maintainer, many tweaks.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/bozohttpd/fix_warnings.diff')
-rw-r--r--network/bozohttpd/fix_warnings.diff56
1 files changed, 56 insertions, 0 deletions
diff --git a/network/bozohttpd/fix_warnings.diff b/network/bozohttpd/fix_warnings.diff
new file mode 100644
index 0000000000..72b566edf1
--- /dev/null
+++ b/network/bozohttpd/fix_warnings.diff
@@ -0,0 +1,56 @@
+diff -Naur bozohttpd-20170201/auth-bozo.c bozohttpd-20170201.patched/auth-bozo.c
+--- bozohttpd-20170201/auth-bozo.c 2017-01-31 23:21:23.000000000 -0500
++++ bozohttpd-20170201.patched/auth-bozo.c 2018-06-29 15:42:59.076820050 -0400
+@@ -34,9 +34,12 @@
+
+ #ifdef DO_HTPASSWD
+
++#define _XOPEN_SOURCE
++
+ #include <sys/param.h>
+
+ #include <string.h>
++#include <strings.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+
+diff -Naur bozohttpd-20170201/bozohttpd.c bozohttpd-20170201.patched/bozohttpd.c
+--- bozohttpd-20170201/bozohttpd.c 2017-01-31 23:21:23.000000000 -0500
++++ bozohttpd-20170201.patched/bozohttpd.c 2018-06-29 15:08:08.066873176 -0400
+@@ -132,6 +132,10 @@
+ * And so it begins ..
+ */
+
++/* need this for vasprintf(): */
++#define _GNU_SOURCE
++#include <stdio.h>
++
+ #include <sys/param.h>
+ #include <sys/socket.h>
+ #include <sys/time.h>
+diff -Naur bozohttpd-20170201/lua-bozo.c bozohttpd-20170201.patched/lua-bozo.c
+--- bozohttpd-20170201/lua-bozo.c 2017-01-31 23:21:23.000000000 -0500
++++ bozohttpd-20170201.patched/lua-bozo.c 2018-06-29 15:43:38.424819051 -0400
+@@ -32,6 +32,9 @@
+
+ #ifndef NO_LUA_SUPPORT
+
++#define _GNU_SOURCE
++#include <stdio.h>
++
+ #include <sys/param.h>
+
+ #include <lua.h>
+diff -Naur bozohttpd-20170201/ssl-bozo.c bozohttpd-20170201.patched/ssl-bozo.c
+--- bozohttpd-20170201/ssl-bozo.c 2017-01-31 23:21:23.000000000 -0500
++++ bozohttpd-20170201.patched/ssl-bozo.c 2018-06-29 15:07:50.813873614 -0400
+@@ -32,6 +32,9 @@
+
+ /* this code implements SSL and backend IO for bozohttpd */
+
++/* need this for vasprintf(): */
++#define _GNU_SOURCE
++
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <syslog.h>