aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-09-20 18:46:47 -0500
committerRob Landley <rob@landley.net>2014-09-20 18:46:47 -0500
commita1a83e671fdd91dcb763651ac86295c217574e6e (patch)
treed57c87367a279a4c6b595f199e631c0e2900d3a2 /lib
parent9b14cb6b12e6f1b07a1ad401e5cb6e091df4ac2f (diff)
downloadtoybox-a1a83e671fdd91dcb763651ac86295c217574e6e.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h2
1 files changed, 2 insertions, 0 deletions
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 <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),