timewarrior: amend patch to greatly simplify

This commit is contained in:
Toyam Cox 2016-11-14 22:38:17 -05:00
parent e70753b5e0
commit 9f7d4cc3cf

View file

@ -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 <shared.h>
#include <format.h>
-#if defined SOLARIS || defined NETBSD || defined FREEBSD
+#ifndef __GLIBC__
#include <limits.h>
#endif
}