aports/testing/dcc/10-dcc-alpine.patch
Duncan Bellamy 9e08e31a8f testing/dcc: new aport
Add aport for dcc-servers.net dcc software. The default config has been
changed to common settings and to listen for requests from 127.0.0.1
2020-02-22 19:48:16 +00:00

37 lines
804 B
Diff

--- a/configure
+++ b/configure
@@ -465,6 +465,11 @@
#define DCC_UNIX 1
EOF
+if test -f /etc/alpine-release; then
+cat >> confdefs.h <<\EOF
+#define DCC_ALPINE 1
+EOF
+fi
# How were we started?
# Mangle $@ to prevent duplicates from updatedcc -cwhatever
--- a/include/dcc_config.h.in
+++ b/include/dcc_config.h.in
@@ -33,6 +33,7 @@
#undef DCC_UNIX
+#undef DCC_ALPINE
#undef DCC_WIN32 /* define DCC_WIN32 in the makefiles */
#if !defined(DCC_UNIX) && !defined(DCC_WIN32)
#error "you must run ./configure"
--- a/include/dcc_types.h
+++ b/include/dcc_types.h
@@ -29,6 +29,9 @@
/* work on WIN32 and any reasonable UNIX platform */
#ifdef DCC_UNIX
+# ifdef DCC_ALPINE
+# include <sys/types.h>
+# endif
#include <stdarg.h>
#include <stdio.h> /* for FreeBSD */
#include <stdlib.h>