00001 /* 00002 * $Id$ 00003 * 00004 * BDB Compatibility layer for SIP-router 00005 * 00006 * Copyright (C) 2010 Marius Zbihlei marius.zbihlei at 1and1 dot ro 00007 * 00008 * This file is part of SIP-router, a free SIP server. 00009 * 00010 * SIP-router is free software; you can redistribute it and/or modify it under the 00011 * terms of the GNU General Public License as published by the Free Software 00012 * Foundation; either version 2 of the License, or (at your option) any later 00013 * version. 00014 * 00015 * SIP-router is distributed in the hope that it will be useful, but WITHOUT ANY 00016 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00017 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 00018 * details. 00019 * 00020 * You should have received a copy of the GNU General Public License along 00021 * with this program; if not, write to the Free Software Foundation, Inc., 00022 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00023 */ 00024 #ifndef BDB_CRS_COMPAT_H 00025 #define BDB_CRS_COMPAT_H 00026 00027 #include <db.h> 00028 00029 /* this is a compatibility layer for cursor close function 00030 * Historically, the function was called c_close() but it became deprecated 00031 * starting with version 4.6 00032 */ 00033 #if DB_VERSION_MAJOR < 4 00034 # define CLOSE_CURSOR c_close 00035 #else 00036 #if (DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR < 6) 00037 # define CLOSE_CURSOR c_close 00038 #else 00039 # define CLOSE_CURSOR close 00040 #endif 00041 #endif 00042 00043 #endif //BDB_CRS_COMPAT_H
1.7.1