Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 641fbe6 commit d94f707Copy full SHA for d94f707
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