--- 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 +# endif #include #include /* for FreeBSD */ #include