dbmail.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Index: configure
  2. --- configure.orig 2007-07-14 11:56:54 +0200
  3. +++ configure 2007-08-03 22:38:16 +0200
  4. @@ -2620,19 +2620,19 @@
  5. withval=$with_pkglibdir; pkglibdirname="$withval"
  6. fi
  7. - if test "x$pkglibdirname" = "x"
  8. + if false
  9. then
  10. DM_PKGLIBDIR="/usr/lib/dbmail"
  11. else
  12. DM_PKGLIBDIR=$pkglibdirname
  13. fi
  14. - if test "x$localstatedir" = 'x${prefix}/var'
  15. + if false
  16. then
  17. DM_STATEDIR="/var/run"
  18. else
  19. DM_STATEDIR=$localstatedir
  20. fi
  21. - if test "x$sysconfdir" = 'x${prefix}/etc'
  22. + if false
  23. then
  24. DM_CONFDIR="/etc"
  25. else
  26. Index: debug.c
  27. --- debug.c.orig 2007-07-14 11:56:54 +0200
  28. +++ debug.c 2007-08-03 22:38:16 +0200
  29. @@ -23,7 +23,7 @@
  30. * Debugging and memory checking functions */
  31. #include "dbmail.h"
  32. -#if defined(BSD4_4)
  33. +#if defined(__FreeBSD__) || defined(BSD4_4)
  34. extern char *__progname; /* Program name, from crt0. */
  35. #else
  36. char *__progname = NULL;
  37. Index: modules/dbsqlite.c
  38. --- modules/dbsqlite.c.orig 2007-07-14 11:56:54 +0200
  39. +++ modules/dbsqlite.c 2007-08-03 22:40:59 +0200
  40. @@ -36,7 +36,7 @@
  41. /* SQLITE3 internals... */
  42. extern int sqlite3ReadUtf8(const unsigned char *);
  43. extern const unsigned char sqlite3UpperToLower[];
  44. -extern int sqlite3utf8CharLen(const char *pData, int nByte);
  45. +extern int sqlite3Utf8CharLen(const char *pData, int nByte);
  46. const char * db_get_sql(sql_fragment_t frag)
  47. {
  48. @@ -106,7 +106,7 @@
  49. static void dbsqlite_current_timestamp_unix(sqlite3_context *f, int argc UNUSED, const sqlite3_value **argv UNUSED)
  50. {
  51. char buf[63];
  52. - sprintf(buf, "%ld", time(NULL)); /* assumes time() is signed int */
  53. + sprintf(buf, "%ld", (long)time(NULL)); /* assumes time() is signed int */
  54. (void)sqlite3_result_text(f,buf,-1,SQLITE_TRANSIENT);
  55. }
  56. @@ -236,7 +236,7 @@
  57. ** Otherwise, return an error.
  58. */
  59. const unsigned char *zEsc = sqlite3_value_text(argv[2]);
  60. - if (sqlite3utf8CharLen((const char *)zEsc, -1) != 1) {
  61. + if (sqlite3Utf8CharLen((const char *)zEsc, -1) != 1) {
  62. sqlite3_result_error(context,
  63. "ESCAPE expression must be a single character", -1);
  64. return;