From a1a83e671fdd91dcb763651ac86295c217574e6e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 20 Sep 2014 18:46:47 -0500 Subject: 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. --- lib/portability.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/portability.h b/lib/portability.h index 866d9a4d..b38d8812 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -74,6 +74,8 @@ char *strptime(const char *buf, const char *format, struct tm *tm); #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), -- cgit v1.2.3