From eb3b2fa5f5d0eed3df91b5ad8c5e51d0608e2311 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Sun, 11 Feb 2007 05:55:00 +0000 Subject: [PATCH] Conditionalize inclusion of optional modules' header files to appease makegen. --- v7/src/microcode/prdb4.c | 7 +++++-- v7/src/microcode/prgdbm.c | 7 +++++-- v7/src/microcode/prpgsql.c | 6 ++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/v7/src/microcode/prdb4.c b/v7/src/microcode/prdb4.c index 97dc5de23..8b43e47c0 100644 --- a/v7/src/microcode/prdb4.c +++ b/v7/src/microcode/prdb4.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: prdb4.c,v 1.6 2007/01/05 21:19:25 cph Exp $ +$Id: prdb4.c,v 1.7 2007/02/11 05:55:00 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -31,7 +31,10 @@ USA. #include "scheme.h" #include "prims.h" #include -#include + +#ifdef HAVE_DB_H +# include +#endif #define UNIFIED_VERSION \ ((DB_VERSION_MAJOR * 0x10000) \ diff --git a/v7/src/microcode/prgdbm.c b/v7/src/microcode/prgdbm.c index fad6997ce..a08a736e1 100644 --- a/v7/src/microcode/prgdbm.c +++ b/v7/src/microcode/prgdbm.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: prgdbm.c,v 1.9 2007/01/12 03:45:55 cph Exp $ +$Id: prgdbm.c,v 1.10 2007/02/11 05:55:00 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -30,7 +30,10 @@ USA. #include "scheme.h" #include "prims.h" #include "os.h" -#include + +#ifdef HAVE_GDBM_H +# include +#endif /* Allocation Tables */ diff --git a/v7/src/microcode/prpgsql.c b/v7/src/microcode/prpgsql.c index 4f91bfd0c..b95bc14bf 100644 --- a/v7/src/microcode/prpgsql.c +++ b/v7/src/microcode/prpgsql.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: prpgsql.c,v 1.12 2007/01/12 03:45:55 cph Exp $ +$Id: prpgsql.c,v 1.13 2007/02/11 05:55:00 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -32,7 +32,9 @@ USA. #include "usrdef.h" #include "os.h" -#include +#ifdef HAVE_LIBPQ_FE_H +# include +#endif #define ARG_CONN(n) ((PGconn *) (arg_ulong_integer (n))) #define ARG_RESULT(n) ((PGresult *) (arg_ulong_integer (n))) -- 2.25.1