summaryrefslogtreecommitdiff
path: root/shells/bash2/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'shells/bash2/patches/patch-ad')
-rw-r--r--shells/bash2/patches/patch-ad49
1 files changed, 0 insertions, 49 deletions
diff --git a/shells/bash2/patches/patch-ad b/shells/bash2/patches/patch-ad
deleted file mode 100644
index ea7dfad5d61..00000000000
--- a/shells/bash2/patches/patch-ad
+++ /dev/null
@@ -1,49 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2001/08/30 13:56:28 mrg Exp $
-
---- unwind_prot.h.orig Thu Feb 1 19:51:00 2001
-+++ unwind_prot.h Thu Aug 30 11:24:44 2001
-@@ -34,8 +34,9 @@
- /* Try to force correct alignment on machines where pointers and ints
- differ in size. */
- typedef union {
-- char *s;
-+ char *p;
- int i;
-+ int s;
- } UWP;
-
- /* Define for people who like their code to look a certain way. */
-@@ -47,18 +48,28 @@
- { \
- UWP u; \
- u.i = (X); \
-- unwind_protect_var (&(X), u.s, sizeof (int)); \
-+ unwind_protect_var (&(X), &u, sizeof (int)); \
- } \
- while (0)
-
- #define unwind_protect_short(X) \
-- unwind_protect_var ((int *)&(X), (char *)&(X), sizeof (short))
-+ do \
-+ { \
-+ UWP u; \
-+ u.i = (X); \
-+ unwind_protect_var (&(X), &u, sizeof (int)); \
-+ } \
-+ while (0)
-
- /* How to protect a pointer to a string. */
- #define unwind_protect_string(X) \
-- unwind_protect_var ((int *)&(X), \
-- ((sizeof (char *) == sizeof (int)) ? (char *) (X) : (char *) &(X)), \
-- sizeof (char *))
-+ do \
-+ { \
-+ UWP u; \
-+ u.p = (X); \
-+ unwind_protect_var (&(X), &u, sizeof (char *)); \
-+ } \
-+ while (0)
-
- /* How to protect any old pointer. */
- #define unwind_protect_pointer(X) unwind_protect_string (X)