URI: 
       tapp-laptop/thinkfan: Add musl-libc patch. - parlay - yet another gentoo overlay
  HTML git clone https://git.parazyd.org/parlay
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit 7c03057aa1886573b3052e8b727909b24052f327
   DIR parent 8c2def76264e22617f349618df0b39fcb59e59a3
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Tue,  4 Oct 2016 21:21:22 +0200
       
       app-laptop/thinkfan: Add musl-libc patch.
       
       Diffstat:
         A app-laptop/thinkfan/files/0001-fix… |      26 ++++++++++++++++++++++++++
         M app-laptop/thinkfan/thinkfan-0.9.3… |       1 +
       
       2 files changed, 27 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/app-laptop/thinkfan/files/0001-fix-musl-build.patch b/app-laptop/thinkfan/files/0001-fix-musl-build.patch
       t@@ -0,0 +1,26 @@
       +diff --git a/src/globaldefs.h b/src/globaldefs.h
       +index 75d3f6f..3008326 100644
       +--- a/src/globaldefs.h
       ++++ b/src/globaldefs.h
       +@@ -110,7 +110,7 @@ char *config_file, *prefix, *rbuf,
       +         *cur_lvl,
       +         *oldpwm; // old contents of pwm*_enable, used for uninit_fan()
       + float bias_level, depulse_tmp;
       +-useconds_t depulse;
       ++unsigned depulse;
       + 
       + int triggered_tidx;
       + 
       +diff --git a/src/thinkfan.c b/src/thinkfan.c
       +index 9117a3f..1526107 100644
       +--- a/src/thinkfan.c
       ++++ b/src/thinkfan.c
       +@@ -310,7 +310,7 @@ int main(int argc, char **argv) {
       +                                 }
       +                         }
       +                         else depulse_tmp = 0.5f;
       +-                        depulse = (useconds_t) (1000*1000 * depulse_tmp);
       ++                        depulse = (unsigned) (1000*1000 * depulse_tmp);
       +                         break;
       +                 default:
       +                         fprintf(stderr, MSG_USAGE);
   DIR diff --git a/app-laptop/thinkfan/thinkfan-0.9.3.ebuild b/app-laptop/thinkfan/thinkfan-0.9.3.ebuild
       t@@ -22,6 +22,7 @@ S="${WORKDIR}/${P}"
        
        src_prepare() {
                # epatch "${FILESDIR}"/${P}-openrc.patch
       +        epatch "${FILESDIR}"/0001-fix-musl-build.patch
        
                sed -e "s:share/doc/${PN}:share/doc/${P}:" \
                        -i CMakeLists.txt