Commit d94f7071 authored by Fred Drake's avatar Fred Drake

Use the configure support to determine which ndbm.h header to include.

parent 641fbe66
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment