summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpider Boardman <spider@orb.nashua.nh.us>2001-06-17 17:21:04 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-18 00:56:22 +0000
commit4efcf9a278914cf1f0f9645a75b0f15d59f42f68 (patch)
treecab157f0b13d8d99b89a5665f693065b63c100f6
parent0fcb073ca17b7658c8a82f28d44643e63d8c0a69 (diff)
downloadperl-4efcf9a278914cf1f0f9645a75b0f15d59f42f68.tar.gz
Re: anyone good at casting spells?
Message-Id: <200106180121.VAA10195@Orb.Nashua.NH.US> p4raw-id: //depot/perl@10674
-rw-r--r--ext/POSIX/POSIX.xs10
-rw-r--r--hv.h2
2 files changed, 7 insertions, 5 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index c2e9852494..49ea57e9dc 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -4,10 +4,12 @@
#ifdef NETWARE
#define _POSIX_
- //Ideally this should be somewhere down in the includes
- //but putting it in other places is giving compiler errors.
- //Also here I am unable to check for HAS_UNAME since it wouldn't have yet
- //come into the file at this stage - sgp 18th Oct 2000
+ /*
+ * Ideally this should be somewhere down in the includes
+ * but putting it in other places is giving compiler errors.
+ * Also here I am unable to check for HAS_UNAME since it wouldn't have
+ * yet come into the file at this stage - sgp 18th Oct 2000
+ */
#include <sys/utsname.h>
#endif /* NETWARE */
diff --git a/hv.h b/hv.h
index a9fc9fb9af..58e7d1da4e 100644
--- a/hv.h
+++ b/hv.h
@@ -123,7 +123,7 @@ C<SV*>.
#define Nullhv Null(HV*)
-#define HvARRAY(hv) ((HE**)((XPVHV*) SvANY(hv))->xhv_array)
+#define HvARRAY(hv) (*(HE***)&((XPVHV*) SvANY(hv))->xhv_array)
#define HvFILL(hv) ((XPVHV*) SvANY(hv))->xhv_fill
#define HvMAX(hv) ((XPVHV*) SvANY(hv))->xhv_max
#define HvKEYS(hv) ((XPVHV*) SvANY(hv))->xhv_keys