xdbm.h revision 178825
1249259Sdim/* 2249259Sdim * Copyright (c) 1995 - 2002 Kungliga Tekniska H�gskolan 3249259Sdim * (Royal Institute of Technology, Stockholm, Sweden). 4249259Sdim * All rights reserved. 5249259Sdim * 6249259Sdim * Redistribution and use in source and binary forms, with or without 7249259Sdim * modification, are permitted provided that the following conditions 8249259Sdim * are met: 9249259Sdim * 10249259Sdim * 1. Redistributions of source code must retain the above copyright 11249259Sdim * notice, this list of conditions and the following disclaimer. 12249259Sdim * 13249259Sdim * 2. Redistributions in binary form must reproduce the above copyright 14249259Sdim * notice, this list of conditions and the following disclaimer in the 15249259Sdim * documentation and/or other materials provided with the distribution. 16249259Sdim * 17249259Sdim * 3. Neither the name of the Institute nor the names of its contributors 18249259Sdim * may be used to endorse or promote products derived from this software 19249259Sdim * without specific prior written permission. 20249259Sdim * 21249259Sdim * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 22249259Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23249259Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24249259Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25249259Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26249259Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27296417Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28296417Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29249259Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30249259Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31249259Sdim * SUCH DAMAGE. 32296417Sdim */ 33249259Sdim 34296417Sdim/* $Id: xdbm.h 10986 2002-05-17 16:02:22Z joda $ */ 35296417Sdim 36296417Sdim/* Generic *dbm include file */ 37296417Sdim 38296417Sdim#ifndef __XDBM_H__ 39249259Sdim#define __XDBM_H__ 40249259Sdim 41249259Sdim#if HAVE_DB_NDBM 42288943Sdim#define DB_DBM_HSEARCH 1 43288943Sdim#include <db.h> 44276479Sdim#elif HAVE_NDBM 45276479Sdim#if defined(HAVE_GDBM_NDBM_H) 46249259Sdim#include <gdbm/ndbm.h> 47249259Sdim#elif defined(HAVE_NDBM_H) 48249259Sdim#include <ndbm.h> 49249259Sdim#endif 50249259Sdim#endif /* HAVE_NDBM */ 51249259Sdim 52249259Sdim#endif /* __XDBM_H__ */ 53249259Sdim