~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to kqemu.c

Tags: upstream-0.9.0+20070816
ImportĀ upstreamĀ versionĀ 0.9.0+20070816

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <sys/ioctl.h>
28
28
#endif
29
29
#ifdef HOST_SOLARIS
30
 
#include <sys/modctl.h>
 
30
#include <sys/ioccom.h>
31
31
#endif
32
32
#include <stdlib.h>
33
33
#include <stdio.h>
177
177
    kqemu_fd = open(KQEMU_DEVICE, O_RDWR);
178
178
#endif
179
179
    if (kqemu_fd == KQEMU_INVALID_FD) {
180
 
        fprintf(stderr, "Could not open '%s' - QEMU acceleration layer not activated\n", KQEMU_DEVICE);
 
180
        fprintf(stderr, "Could not open '%s' - QEMU acceleration layer not activated: %s\n",
 
181
                KQEMU_DEVICE, strerror(errno));
181
182
        return -1;
182
183
    }
183
184
    version = 0;