diff options
author | rodent <rodent@pkgsrc.org> | 2014-05-25 03:59:17 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2014-05-25 03:59:17 +0000 |
commit | 6c4ca3ea4f502b2e7ccba40b9aac65c5d52cf7cf (patch) | |
tree | 4b12ada3314a06546d9a649c7ce31514322c7214 /shells | |
parent | 09c607be84c48ceddea872b6062384ebcf5e8bc9 (diff) | |
download | pkgsrc-6c4ca3ea4f502b2e7ccba40b9aac65c5d52cf7cf.tar.gz |
Fix build for OpenBSD.
Diffstat (limited to 'shells')
-rw-r--r-- | shells/tcsh/distinfo | 3 | ||||
-rw-r--r-- | shells/tcsh/patches/patch-sh.h | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/shells/tcsh/distinfo b/shells/tcsh/distinfo index 808378ea54d..ad0f6d79d37 100644 --- a/shells/tcsh/distinfo +++ b/shells/tcsh/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.32 2014/04/04 12:00:37 kim Exp $ +$NetBSD: distinfo,v 1.33 2014/05/25 03:59:17 rodent Exp $ SHA1 (tcsh-6.18.01.tar.gz) = eee2035645737197ff8059c84933a75d23cd76f9 RMD160 (tcsh-6.18.01.tar.gz) = ea18bb6d4d6dca2700d74daa2940f67d45a18cb9 @@ -9,3 +9,4 @@ SHA1 (patch-ac) = c2a944f9c6857cdd8ba9753e3ce7c496749f8f87 SHA1 (patch-configure) = 91c2019da8c074bd6f24b84bf798ccd497110727 SHA1 (patch-nls_Makefile.in) = 50c6d7a038799db60393a4daf3a491961a40fdc7 SHA1 (patch-sh.c) = 9f7a1449a0ff0da5a3af886fcf86bdc551e10732 +SHA1 (patch-sh.h) = ac6211ddd5e552e9baec2d35aed5e7e573cab04e diff --git a/shells/tcsh/patches/patch-sh.h b/shells/tcsh/patches/patch-sh.h new file mode 100644 index 00000000000..38dc6a5a080 --- /dev/null +++ b/shells/tcsh/patches/patch-sh.h @@ -0,0 +1,15 @@ +$NetBSD: patch-sh.h,v 1.1 2014/05/25 03:59:17 rodent Exp $ + +Add OpenBSD support. + +--- sh.h.orig 2011-04-14 18:25:25.000000000 +0000 ++++ sh.h +@@ -310,7 +310,7 @@ typedef long tcsh_number_t; + * redefines malloc(), so we define the following + * to avoid it. + */ +-# if defined(SYSMALLOC) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) || defined(sgi) || defined(_OSD_POSIX) ++# if defined(SYSMALLOC) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) || defined(sgi) || defined(_OSD_POSIX) || defined(__OpenBSD__) + # define NO_FIX_MALLOC + # include <stdlib.h> + # else /* glibc */ |