changeset 1494:ca340df928bc

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.
author Rob Landley <>
date Sat, 20 Sep 2014 18:46:47 -0500
parents 74b29c369420
children 4542db35efd8
files lib/portability.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <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,