diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-02 10:35:06 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-02 10:35:06 +0100 |
commit | 450493cf6b563389bd11f02284bd22d7ed90b5da (patch) | |
tree | cac99fbc793b6ab660d00be1fa373b9630daccb9 /src | |
parent | bbb21f923a77c0d6dde370688ba745367340ca45 (diff) | |
download | libguestfs-450493cf6b563389bd11f02284bd22d7ed90b5da.tar.gz libguestfs-450493cf6b563389bd11f02284bd22d7ed90b5da.tar.xz libguestfs-450493cf6b563389bd11f02284bd22d7ed90b5da.zip |
ppc64: Avoid "defined by not used" warning for is_openable function.
Diffstat (limited to 'src')
-rw-r--r-- | src/launch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/launch.c b/src/launch.c index c14b369e..ed258ebb 100644 --- a/src/launch.c +++ b/src/launch.c @@ -471,7 +471,9 @@ guestfs__add_cdrom (guestfs_h *g, const char *filename) return guestfs__config (g, "-cdrom", filename); } +#if defined(__i386__) || defined(__x86_64__) static int is_openable (guestfs_h *g, const char *path, int flags); +#endif int guestfs__launch (guestfs_h *g) @@ -1438,6 +1440,7 @@ qemu_supports_re (guestfs_h *g, const pcre *option_regex) } #endif +#if defined(__i386__) || defined(__x86_64__) /* Check if a file can be opened. */ static int is_openable (guestfs_h *g, const char *path, int flags) @@ -1450,6 +1453,7 @@ is_openable (guestfs_h *g, const char *path, int flags) close (fd); return 1; } +#endif static char * qemu_drive_param (guestfs_h *g, const struct drive *drv) |