Index: lib/graph/graphio.c
--- lib/graph/graphio.c.orig	2009-03-09 19:16:00 +0100
+++ lib/graph/graphio.c	2009-03-11 20:43:50 +0100
@@ -193,7 +193,7 @@
 {
     if (myfgets) AG.fgets = myfgets;
     if (myfwrite) AG.fwrite = myfwrite;
-#if defined(__SUNPRO_C) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__FreeBSD__)
+#if 1 || defined(__SUNPRO_C) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__FreeBSD__)
 #undef ferror
 #endif
     if (myferror) AG.ferror = myferror;
@@ -581,7 +581,7 @@
     free(dict);
 }
 
-#ifdef ferror
+#if 1
 /* if ferror is a macro (__SUNPRO_C __CYGWIN__ __MINGW32__ __FreeBSD__ and poss others)
  * then wrap it in a function */
 static int agferror(FILE *stream)
@@ -600,7 +600,7 @@
         AG.fwrite = fwrite;   /* init to system version of fwrite() */
     }
     if (AG.ferror == NULL) {
-#ifdef ferror
+#if 1
 #undef ferror
 	/* if ferror is a macro, then use our wrapper function, but 
  	 * undef the macro first so it doesn't subst in "AG.ferror" */
Index: lib/sfio/Makefile
sed: -e expression #1, char 19: unknown option to `s'
Index: lib/sfio/sfhdr.h
--- lib/sfio/sfhdr.h.orig	2009-02-05 20:21:15 +0100
+++ lib/sfio/sfhdr.h	2009-03-11 20:39:44 +0100
@@ -143,6 +143,10 @@
 #include	<errno.h>
 #include	<ctype.h>
 
+#ifndef va_copy
+#define va_copy(to,fr) ((to)=(fr))
+#endif
+
 #if vt_threaded
 
 /* initialization */
@@ -254,7 +258,9 @@
 #include	<limits.h>
 #else
 #if _hdr_values
+#ifdef HAVE_VALUES_H
 #include	<values.h>
+#endif
 #if !defined(SF_MAXDOUBLE) && defined(MAXDOUBLE)
 #define SF_MAXDOUBLE	MAXDOUBLE
 #endif
Index: plugin/gd/gvrender_gd.c
--- plugin/gd/gvrender_gd.c.orig	2009-02-18 14:36:50 +0100
+++ plugin/gd/gvrender_gd.c	2009-03-11 20:39:44 +0100
@@ -33,6 +33,10 @@
 #ifdef HAVE_LIBGD
 #include "gd.h"
 
+#ifndef HAVE_GD_FONTCONFIG
+#define HAVE_GD_FONTCONFIG
+#endif
+
 typedef enum {
 	FORMAT_GIF,
 	FORMAT_JPEG,
Index: plugin/gd/gvtextlayout_gd.c
--- plugin/gd/gvtextlayout_gd.c.orig	2008-10-30 23:06:59 +0100
+++ plugin/gd/gvtextlayout_gd.c	2009-03-11 20:39:44 +0100
@@ -26,6 +26,10 @@
 #ifdef HAVE_LIBGD
 #include "gd.h"
 
+#ifndef HAVE_GD_FONTCONFIG
+#define HAVE_GD_FONTCONFIG
+#endif
+
 #if defined(HAVE_LIBGD) && defined(HAVE_GD_FREETYPE)
 
 /* fontsize at which text is omitted entirely */
Index: GraphViz-Data-Structure-0.17/Makefile.PL
--- GraphViz-Data-Structure-0.17/Makefile.PL.orig	2007-09-13 20:17:00 +0200
+++ GraphViz-Data-Structure-0.17/Makefile.PL	2009-03-12 17:36:27 +0100
@@ -8,7 +8,7 @@
   die "You must install the graphviz package (http://www.graphviz.org) before using this module.\n";
 }
 else {
-  my (@v) = ($dot_version =~ /dot (?:- Graphviz )?version (\d+)\.(\d+)/);
+  my (@v) = ($dot_version =~ /dot (?:- Graphviz )?version (\d+)\.(\d+)/i);
   if ( $v[0] < 2 || $v[1] < 2 ) {
     die "You must have at least version 2.2 of dot to use this module (found $v[0].$v[1])";
   }
