aboutsummaryrefslogtreecommitdiff
path: root/slirp/slirp.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2016-05-13 09:04:30 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-05-16 20:58:47 +0200
commit5469feadb1dafc663ed5b978dc9a5ff0b1b69a6e (patch)
tree874a1770a2d766265758d6dea3a59d54a1cef9ca /slirp/slirp.h
parentcebee21aca9ffef0248b6b6e37c4c152358241a3 (diff)
downloadqemu-5469feadb1dafc663ed5b978dc9a5ff0b1b69a6e.zip
qemu-5469feadb1dafc663ed5b978dc9a5ff0b1b69a6e.tar.gz
qemu-5469feadb1dafc663ed5b978dc9a5ff0b1b69a6e.tar.bz2
slirp: Remove obsolete backward-compatibility cruft
The slirp code does not use index() and gethostid() anymore, so these parts can be removed without problems. memmove() and strerror() should be available on each of the supported platforms nowadays, too, so these wrappers are also not needed anymore. And we certainly also do not support Ultrix anymore, so no need to keep the code for this platform anymore. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp/slirp.h')
-rw-r--r--slirp/slirp.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/slirp/slirp.h b/slirp/slirp.h
index 203deec..5b5df59 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -23,11 +23,6 @@ typedef char *caddr_t;
# include <sys/bitypes.h>
#endif
-
-#ifndef HAVE_MEMMOVE
-#define memmove(x, y, z) bcopy(y, x, z)
-#endif
-
#ifndef _WIN32
#include <sys/uio.h>
#endif
@@ -37,17 +32,6 @@ typedef char *caddr_t;
#include <arpa/inet.h>
#endif
-/* Systems lacking strdup() definition in <string.h>. */
-#if defined(ultrix)
-char *strdup(const char *);
-#endif
-
-/* Systems lacking malloc() definition in <stdlib.h>. */
-#if defined(ultrix) || defined(hcx)
-void *malloc(size_t arg);
-void free(void *ptr);
-#endif
-
#ifndef NO_UNIX_SOCKETS
#include <sys/un.h>
#endif
@@ -259,18 +243,6 @@ void if_start(Slirp *);
void if_start(struct ttys *);
#endif
-#ifndef HAVE_STRERROR
- char *strerror(int error);
-#endif
-
-#ifndef HAVE_INDEX
- char *index(const char *, int);
-#endif
-
-#ifndef HAVE_GETHOSTID
- long gethostid(void);
-#endif
-
#ifndef _WIN32
#include <netdb.h>
#endif