mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Use the configure support to determine which ndbm.h header to include.
This commit is contained in:
parent
641fbe66e7
commit
d94f70716e
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue