From 9f7d4cc3cffb9887d40dd4e378c332c496469bea Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 14 Nov 2016 22:38:17 -0500 Subject: [PATCH] timewarrior: amend patch to greatly simplify --- srcpkgs/timewarrior/patches/musl.patch | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/srcpkgs/timewarrior/patches/musl.patch b/srcpkgs/timewarrior/patches/musl.patch index e31c29e3f1e..fea19b2bd80 100644 --- a/srcpkgs/timewarrior/patches/musl.patch +++ b/srcpkgs/timewarrior/patches/musl.patch @@ -1,13 +1,11 @@ ---- src/libshared/src/FS.cpp.old 2016-11-14 18:06:06.269639871 -0500 -+++ src/libshared/src/FS.cpp 2016-11-14 18:11:33.523550960 -0500 -@@ -905,8 +905,8 @@ - free (buf); - return result; - #else -- char buf[PATH_MAX]; -- getcwd (buf, PATH_MAX - 1); -+ char buf[FILENAME_MAX]; -+ getcwd (buf, FILENAME_MAX - 1); - return std::string (buf); +--- src/libshared/src/FS.cpp.old 2016-11-14 22:25:30.714769358 -0500 ++++ src/libshared/src/FS.cpp 2016-11-14 22:36:37.692633243 -0500 +@@ -41,7 +41,7 @@ + #include + #include + +-#if defined SOLARIS || defined NETBSD || defined FREEBSD ++#ifndef __GLIBC__ + #include #endif - } +