projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
641fbe6
)
Use the configure support to determine which ndbm.h header to include.
author
Fred Drake
<fdrake@acm.org>
Thu, 14 Sep 2000 15:48:06 +0000
(15:48 +0000)
committer
Fred Drake
<fdrake@acm.org>
Thu, 14 Sep 2000 15:48:06 +0000
(15:48 +0000)
Modules/dbmmodule.c
patch
|
blob
|
history
diff --git
a/Modules/dbmmodule.c
b/Modules/dbmmodule.c
index c0cfb29c15ff739d5d36caa5c3de45f32ba4dddc..afb039b3a8c9d085d4d83489cbd8cec491bfdfe0 100644
(file)
--- a/
Modules/dbmmodule.c
+++ b/
Modules/dbmmodule.c
@@
-7,7
+7,17
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+
+/* Some Linux systems install gdbm/ndbm.h, but not ndbm.h. This supports
+ * whichever configure was able to locate.
+ */
+#if defined(HAVE_NDBM_H)
#include <ndbm.h>
+#elif defined(HAVE_GDBM_NDBM_H)
+#include <gdbm/ndbm.h>
+#else
+#error "No ndbm.h available!"
+#endif
typedef struct {
PyObject_HEAD