xdbm.h revision 233294
1226586Sdim/* 2226586Sdim * Copyright (c) 1995 - 2002 Kungliga Tekniska H��gskolan 3226586Sdim * (Royal Institute of Technology, Stockholm, Sweden). 4226586Sdim * All rights reserved. 5226586Sdim * 6226586Sdim * Redistribution and use in source and binary forms, with or without 7226586Sdim * modification, are permitted provided that the following conditions 8226586Sdim * are met: 9226586Sdim * 10226586Sdim * 1. Redistributions of source code must retain the above copyright 11226586Sdim * notice, this list of conditions and the following disclaimer. 12226586Sdim * 13226586Sdim * 2. Redistributions in binary form must reproduce the above copyright 14226586Sdim * notice, this list of conditions and the following disclaimer in the 15226586Sdim * documentation and/or other materials provided with the distribution. 16226586Sdim * 17226586Sdim * 3. Neither the name of the Institute nor the names of its contributors 18226586Sdim * may be used to endorse or promote products derived from this software 19226586Sdim * without specific prior written permission. 20226586Sdim * 21226586Sdim * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 22226586Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23226586Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24226586Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 25226586Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26226586Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27226586Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28226586Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29226586Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30226586Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31226586Sdim * SUCH DAMAGE. 32226586Sdim */ 33226586Sdim 34226586Sdim/* $Id$ */ 35226586Sdim 36226586Sdim/* Generic *dbm include file */ 37234353Sdim 38226586Sdim#ifndef __XDBM_H__ 39226586Sdim#define __XDBM_H__ 40234353Sdim 41226586Sdim#if HAVE_DB_NDBM 42226586Sdim#define DB_DBM_HSEARCH 1 43234353Sdim#include <db.h> 44226586Sdim#elif HAVE_NDBM 45226586Sdim#if defined(HAVE_GDBM_NDBM_H) 46234353Sdim#include <gdbm/ndbm.h> 47226586Sdim#elif defined(HAVE_NDBM_H) 48226586Sdim#include <ndbm.h> 49226586Sdim#endif 50226586Sdim#endif /* HAVE_NDBM */ 51226586Sdim 52226586Sdim#endif /* __XDBM_H__ */ 53226586Sdim