aboutsummaryrefslogtreecommitdiffstats
path: root/tools/blktap2/vhd
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-07-02 21:45:30 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-07-02 21:45:30 +0100
commitcfafda4169f08447a3163e9aa4997121c562c13d (patch)
treef45f2984808bcdb35ca98c01c55081ee38792ffc /tools/blktap2/vhd
parent428dc303f59bf749bd9437e44db1f54d12bdb5bc (diff)
downloadxen-cfafda4169f08447a3163e9aa4997121c562c13d.tar.gz
xen-cfafda4169f08447a3163e9aa4997121c562c13d.tar.bz2
xen-cfafda4169f08447a3163e9aa4997121c562c13d.zip
tools: Always check for __linux__ not __Linux__
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/blktap2/vhd')
-rw-r--r--tools/blktap2/vhd/lib/libvhd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/blktap2/vhd/lib/libvhd.c b/tools/blktap2/vhd/lib/libvhd.c
index 1dd36238e6..ae691a0a1e 100644
--- a/tools/blktap2/vhd/lib/libvhd.c
+++ b/tools/blktap2/vhd/lib/libvhd.c
@@ -1335,7 +1335,7 @@ vhd_macx_encode_location(char *name, char **out, int *outlen)
snprintf(uri, ibl+1, "file://%s", name);
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&urip, &ibl, &uri_utf8p, &obl) == (size_t)-1 ||
@@ -1425,7 +1425,7 @@ vhd_w2u_encode_location(char *name, char **out, int *outlen)
}
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&urip, &ibl, &uri_utf16p, &obl) == (size_t)-1 ||
@@ -1470,7 +1470,7 @@ vhd_macx_decode_location(const char *in, char *out, int len)
return NULL;
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&in, &ibl, &out, &obl) == (size_t)-1 || ibl)
@@ -1502,7 +1502,7 @@ vhd_w2u_decode_location(const char *in, char *out, int len, char *utf_type)
return NULL;
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&in, &ibl, &out, &obl) == (size_t)-1 || ibl)
@@ -2498,7 +2498,7 @@ vhd_initialize_header_parent_name(vhd_context_t *ctx, const char *parent_path)
memset(dst, 0, obl);
if (iconv(cd,
-#if defined(__linux__) || defined(__Linux__)
+#ifdef __linux__
(char **)
#endif
&pname, &ibl, &dst, &obl) == (size_t)-1 || ibl)