]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bsd-user/bsdload.c
Merge remote-tracking branch 'sstabellini/tags/xen-20161122-tag' into staging
[mirror_qemu.git] / bsd-user / bsdload.c
index 6b52e087209859edb0c4e0cf1eeffd31fdfbf06b..94eec363b21f5dc061f344490419e5ec69b6f9ec 100644 (file)
@@ -1,12 +1,6 @@
 /* Code for loading BSD executables.  Mostly linux kernel code.  */
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include "qemu/osdep.h"
 
 #include "qemu.h"
 
@@ -183,7 +177,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
                 && bprm.buf[3] == 'F') {
             retval = load_elf_binary(&bprm,regs,infop);
         } else {
-            error_report("Unknown binary format");
+            fprintf(stderr, "Unknown binary format\n");
             return -1;
         }
     }