diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-31 16:11:07 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-31 16:11:07 +0000 |
commit | c9cb84703b016ec6d273d979aee6a6a8763846d9 (patch) | |
tree | 795b93889517903e0b23612ab7b9d62561fabfbd /Modules/bsddbmodule.c | |
parent | 6102e29df28fa0707752875e23445ef1d84d5b10 (diff) | |
download | cpython-git-c9cb84703b016ec6d273d979aee6a6a8763846d9.tar.gz |
Skip Montanaro <skip@mojam.com>:
Update the build structures to automatically detect the presence of BSD db,
including the proper name of the header file to include. Has all the
expected niceties associated with yet-more-configure-options. ;)
This checkin includes changes for non-generated files only; subsequent
checkin will catch those.
This is part of SourceForge patch #101272.
Diffstat (limited to 'Modules/bsddbmodule.c')
-rw-r--r-- | Modules/bsddbmodule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c index a956ada61a..48c221e7eb 100644 --- a/Modules/bsddbmodule.c +++ b/Modules/bsddbmodule.c @@ -30,8 +30,11 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> -/* If using Berkeley DB 2.0 or newer, change this include to <db_185.h>: */ +#ifdef HAVE_DB_185_H +#include <db_185.h> +#else #include <db.h> +#endif /* Please don't include internal header files of the Berkeley db package (it messes up the info required in the Setup file) */ |