We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e323556 commit 519242aCopy full SHA for 519242a
1 file changed
Modules/dbmmodule.c
@@ -7,7 +7,17 @@
7
#include <sys/types.h>
8
#include <sys/stat.h>
9
#include <fcntl.h>
10
+
11
+/* Some Linux systems install gdbm/ndbm.h, but not ndbm.h. This supports
12
+ * whichever configure was able to locate.
13
+ */
14
+#if defined(HAVE_NDBM_H)
15
#include <ndbm.h>
16
+#elif defined(HAVE_GDBM_NDBM_H)
17
+#include <gdbm/ndbm.h>
18
+#else
19
+#error "No ndbm.h available!"
20
+#endif
21
22
typedef struct {
23
PyObject_HEAD
0 commit comments