summaryrefslogtreecommitdiff
path: root/shells/ast-ksh/patches/patch-src_lib_libast_features_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'shells/ast-ksh/patches/patch-src_lib_libast_features_map.c')
-rw-r--r--shells/ast-ksh/patches/patch-src_lib_libast_features_map.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/shells/ast-ksh/patches/patch-src_lib_libast_features_map.c b/shells/ast-ksh/patches/patch-src_lib_libast_features_map.c
index 2bdaef226df..1936b4f7f89 100644
--- a/shells/ast-ksh/patches/patch-src_lib_libast_features_map.c
+++ b/shells/ast-ksh/patches/patch-src_lib_libast_features_map.c
@@ -1,4 +1,20 @@
-$NetBSD: patch-src_lib_libast_features_map.c,v 1.1 2014/11/06 12:25:36 joerg Exp $
+$NetBSD: patch-src_lib_libast_features_map.c,v 1.2 2014/11/10 18:02:53 joerg Exp $
+
+--- src/lib/libast/features/map.c.orig 2010-06-25 16:59:08.000000000 +0000
++++ src/lib/libast/features/map.c
+@@ -432,6 +432,11 @@ main()
+ printf("#define memalign _ast_memalign\n");
+ printf("extern void* memalign(size_t, size_t);\n");
+ #endif
++#if _lib_posix_memalign
++ printf("#undef posix_memalign\n");
++ printf("#define posix_memalign _ast_posix_memalign\n");
++ printf("extern int posix_memalign(void **, size_t, size_t);\n");
++#endif
+ #if _lib_mstats
+ printf("#undef mstats\n");
+ printf("#define mstats _ast_mstats\n");
+$NetBSD: patch-src_lib_libast_features_map.c,v 1.2 2014/11/10 18:02:53 joerg Exp $
--- src/lib/libast/features/map.c.orig 2010-06-25 16:59:08.000000000 +0000
+++ src/lib/libast/features/map.c