]> git.pld-linux.org Git - packages/inn.git/blob - inn-db.patch
- C: logrotate < 3.7.4 due to archiv -> archive transition
[packages/inn.git] / inn-db.patch
1 diff -Nur inn-2.4.0.orig/authprogs/ckpasswd.c inn-2.4.0/authprogs/ckpasswd.c
2 --- inn-2.4.0.orig/authprogs/ckpasswd.c 2003-05-09 06:25:27.000000000 +0200
3 +++ inn-2.4.0/authprogs/ckpasswd.c      2003-06-29 13:03:12.000000000 +0200
4 @@ -26,13 +26,8 @@
5  #include <grp.h>
6  
7  #if HAVE_DBM
8 -# if HAVE_NDBM_H
9 -#  include <ndbm.h>
10 -# elif HAVE_GDBM_NDBM_H
11 -#  include <gdbm-ndbm.h>
12 -# elif HAVE_DB1_NDBM_H
13 -#  include <db1/ndbm.h>
14 -# endif
15 +# define DB_DBM_HSEARCH 1
16 +# include <db.h>
17  # define OPT_DBM "d:"
18  #else
19  # define OPT_DBM ""
20 --- inn-2.4.2/configure.in.orig 2004-12-22 05:21:19.000000000 +0100
21 +++ inn-2.4.2/configure.in      2004-12-27 08:32:38.010338472 +0100
22 @@ -780,8 +780,9 @@
23  dnl Search for various additional libraries used by portions of INN.
24  INN_SEARCH_AUX_LIBS(crypt, crypt, CRYPT_LIB)
25  INN_SEARCH_AUX_LIBS(getspnam, shadow, SHADOW_LIB)
26 -INN_SEARCH_AUX_LIBS(dbm_open, ndbm dbm, DBM_LIB,
27 -    [AC_DEFINE(HAVE_DBM, 1, [Define if you have a dbm library.])])
28 +DBM_LIB="-ldb"
29 +AC_SUBST(DBM_LIB)
30 +AC_DEFINE(HAVE_DBM, 1, [Define if you have a dbm library.])
31  
32  dnl IRIX has a PAM library with the right symbols but no header files suitable
33  dnl for use with it, so we have to check the header files first and then only
34 @@ -973,17 +974,11 @@
35  AC_HEADER_SYS_WAIT
36  
37  dnl Generic checks for header files.
38 -AC_CHECK_HEADERS(crypt.h inttypes.h limits.h ndbm.h pam/pam_appl.h stdbool.h \
39 +AC_CHECK_HEADERS(crypt.h inttypes.h limits.h pam/pam_appl.h stdbool.h \
40                   stddef.h stdint.h string.h sys/bitypes.h sys/filio.h \
41                   sys/loadavg.h sys/param.h sys/select.h sys/sysinfo.h \
42                   sys/time.h unistd.h)
43  
44 -dnl Some Linux systems have db1/ndbm.h instead of ndbm.h.  Others have
45 -dnl gdbm-ndbm.h.
46 -if test x"$ac_cv_header_ndbm_h" = xno ; then
47 -    AC_CHECK_HEADERS(db1/ndbm.h gdbm-ndbm.h)
48 -fi
49 -
50  dnl Check to see if herrno is declared.
51  AC_DEFUN([INN_NEED_HERRNO_DECLARATION],
52  [AC_CACHE_CHECK([whether h_errno must be declared], inn_cv_herrno_need_decl,
This page took 0.023574 seconds and 3 git commands to generate.