# HG changeset patch # User Rob Landley # Date 1411256807 18000 # Node ID ca340df928bc67c5543df5c667a502fd43dce77a # Parent 74b29c36942024a182980ae83d70be82cca5251b Tweak portability.h for uClibc version in buildroot defconfig. I've been locally patching uClibc to not violate posix-2008 (you don't need to define a GNU macro to get a posix function), but uClibc is obsolete and moribund (development peaked in 2006, last bugfix release was over 2 years ago), and the largest remaining user (buildroot) doesn't bother to apply such a patch. Since even buildroot is slowly migrating to musl-libc, just do the portability tweak for what the last release of the old thing actually did. diff -r 74b29c369420 -r ca340df928bc lib/portability.h --- a/lib/portability.h Sat Sep 20 17:51:23 2014 -0500 +++ b/lib/portability.h Sat Sep 20 18:46:47 2014 -0500 @@ -74,6 +74,8 @@ #include #include ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream); +char *stpcpy(char *dest, const char *src); +pid_t getsid(pid_t pid); // uClibc's last-ever release was in 2012, so of course it doesn't define // any flag newer than MS_MOVE, which was added in 2001 (linux 2.5.0.5),