Index: configure
--- configure.orig	2009-09-05 14:41:22 +0200
+++ configure	2009-09-06 23:09:15 +0200
@@ -6712,10 +6712,7 @@
 if $ac_preproc_ok; then :
 
 else
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details." "$LINENO" 5; }
+    :
 fi
 
 ac_ext=c
Index: src/unvis.c
--- src/unvis.c.orig	2009-09-05 13:47:56 +0200
+++ src/unvis.c	2009-09-06 23:04:33 +0200
@@ -45,7 +45,7 @@
 #include <stdio.h>
 #include <vis.h>
 
-#ifdef __weak_alias
+#if defined(__linux) && defined(__weak_alias)
 __weak_alias(strunvis,_strunvis)
 #endif
 
Index: src/vi.c
--- src/vi.c.orig	2009-09-05 13:47:56 +0200
+++ src/vi.c	2009-09-06 23:04:33 +0200
@@ -916,14 +916,14 @@
  * NB: posix implies that we should enter insert mode, however
  * this is against historical precedent...
  */
-#ifdef __weak_reference
+#if defined(__linux__) && defined(__weak_reference)
 extern char *get_alias_text(const char *) __weak_reference(get_alias_text);
 #endif
 protected el_action_t
 /*ARGSUSED*/
 vi_alias(EditLine *el, int c)
 {
-#ifdef __weak_reference
+#if defined(__linux__) && defined(__weak_reference)
 	char alias_name[3];
 	char *alias_text;
 
