]> git.proxmox.com Git - mirror_qemu.git/blobdiff - slirp/misc.c
Use #include "..." for our own headers, <...> for others
[mirror_qemu.git] / slirp / misc.c
index 5497161f136a48143e2ad28fd859473ba5cb1054..88e9d94197a6ae28fabc78918c72b65200858c54 100644 (file)
@@ -5,9 +5,9 @@
  * terms and conditions of the copyright.
  */
 
-#include <slirp.h>
-#include <libslirp.h>
-
+#include "qemu/osdep.h"
+#include "slirp.h"
+#include "libslirp.h"
 #include "monitor/monitor.h"
 #include "qemu/error-report.h"
 #include "qemu/main-loop.h"
 int slirp_debug = DBG_CALL|DBG_MISC|DBG_ERROR;
 #endif
 
-struct quehead {
-       struct quehead *qh_link;
-       struct quehead *qh_rlink;
-};
-
 inline void
 insque(void *a, void *b)
 {
@@ -64,27 +59,6 @@ int add_exec(struct ex_list **ex_ptr, int do_pty, char *exec,
        return 0;
 }
 
-#ifndef HAVE_STRERROR
-
-/*
- * For systems with no strerror
- */
-
-extern int sys_nerr;
-extern char *sys_errlist[];
-
-char *
-strerror(error)
-       int error;
-{
-       if (error < sys_nerr)
-          return sys_errlist[error];
-       else
-          return "Unknown error.";
-}
-
-#endif
-
 
 #ifdef _WIN32