Tweak portability.h for uClibc version in buildroot defconfig.
authorRob Landley <rob@landley.net>
Sat, 20 Sep 2014 23:46:47 +0000 (18:46 -0500)
committerRob Landley <rob@landley.net>
Sat, 20 Sep 2014 23:46:47 +0000 (18:46 -0500)
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

index 866d9a4..b38d881 100644 (file)
@@ -74,6 +74,8 @@ char *strptime(const char *buf, const char *format, struct tm *tm);
 #include <unistd.h>
 #include <stdio.h>
 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),