~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to osdep.c

  • Committer: Anthony Liguori
  • Author(s): Juan Quintela
  • Date: 2009-07-27 19:09:16 UTC
  • Revision ID: git-v1:dfe5fff3eaab1285cd1565fa0a33e5acd13b279c
change HOST_SOLARIS to CONFIG_SOLARIS{_VERSION}

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <errno.h>
29
29
#include <unistd.h>
30
30
#include <fcntl.h>
31
 
#ifdef HOST_SOLARIS
 
31
#ifdef CONFIG_SOLARIS
32
32
#include <sys/types.h>
33
33
#include <sys/statvfs.h>
34
34
#endif
116
116
    int map_anon = 0;
117
117
    const char *tmpdir;
118
118
    char phys_ram_file[1024];
119
 
#ifdef HOST_SOLARIS
 
119
#ifdef CONFIG_SOLARIS
120
120
    struct statvfs stfs;
121
121
#else
122
122
    struct statfs stfs;
129
129
    if (phys_ram_fd < 0) {
130
130
        tmpdir = getenv("QEMU_TMPDIR");
131
131
        if (!tmpdir)
132
 
#ifdef HOST_SOLARIS
 
132
#ifdef CONFIG_SOLARIS
133
133
            tmpdir = "/tmp";
134
134
        if (statvfs(tmpdir, &stfs) == 0) {
135
135
#else