$NetBSD: patch-ag,v 1.1 2007/10/10 18:09:31 rillig Exp $

--- expect.c.orig	2000-11-04 01:35:57.000000000 +0000
+++ expect.c	2007-10-10 18:07:13.000000000 +0000
@@ -1412,6 +1412,8 @@ ExpSet_reset(self, args)
     return Py_None;
   }
 
+static PyObject *ExpSet_getattr(ExpSetObject *, char *);
+
 /* Convert the registered Expect variables to a Python dictionary.
    Changing the dictionary will not affect the Expect variables.
  */
@@ -1421,7 +1423,6 @@ ExpSet_todict(self, args)
   PyObject *args;
   { struct pyexp_variable_map *var;
     PyObject *dict, *item;
-    static PyObject *ExpSet_getattr(ExpSetObject *, char *);
 
     if ((dict = PyDict_New()) == NULL)
       return NULL;
