~ubuntu-branches/debian/stretch/db1-compat/stretch

« back to all changes in this revision

Viewing changes to debian/patches/libc-symbols.patch

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-03-26 00:22:36 UTC
  • Revision ID: james.westby@ubuntu.com-20100326002236-3ftivuxpt4fgiomh
Tags: 2.1.3-13
Convert to source format 3.0 (quilt) and DEP-3 patch tagging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Define symbols that were formerly libc-only
 
2
 We aren't in libc any more, so we don't have to worry about polluting
 
3
 libnss_db's namespace.
 
4
Author: Colin Watson <cjwatson@debian.org>
 
5
Bug-Debian: http://bugs.debian.org/163264
 
6
Forwarded: no
 
7
Last-Update: 2010-03-26
 
8
 
 
9
Index: b/btree/btree.h
 
10
===================================================================
 
11
--- a/btree/btree.h
 
12
+++ b/btree/btree.h
 
13
@@ -43,7 +43,7 @@
 
14
 
 
15
 #include <mpool.h>
 
16
 
 
17
-#ifdef _LIBC
 
18
+/* #ifdef _LIBC */
 
19
 /* In the GNU C library we must not pollute the namespace because libdb is
 
20
    needed by libnss_db.  */
 
21
 #define mpool_open __mpool_open
 
22
@@ -53,7 +53,7 @@
 
23
 #define mpool_put __mpool_put
 
24
 #define mpool_sync __mpool_sync
 
25
 #define mpool_close __mpool_close
 
26
-#endif
 
27
+/* #endif */
 
28
 
 
29
 #define        DEFMINKEYPAGE   (2)             /* Minimum keys per page */
 
30
 #define        MINCACHE        (5)             /* Minimum cached pages */
 
31
Index: b/db/db.c
 
32
===================================================================
 
33
--- a/db/db.c
 
34
+++ b/db/db.c
 
35
@@ -44,11 +44,11 @@
 
36
 
 
37
 #include <db.h>
 
38
 
 
39
-#ifdef _LIBC
 
40
+/* #ifdef _LIBC */
 
41
 /* In the GNU C library we must not pollute the namespace, because libdb
 
42
    is needed by libnss_db.  */
 
43
 #define dbopen __dbopen
 
44
-#endif
 
45
+/* #endif */
 
46
 
 
47
 DB *
 
48
 dbopen(fname, flags, mode, type, openinfo)
 
49
@@ -78,10 +78,10 @@
 
50
        errno = EINVAL;
 
51
        return (NULL);
 
52
 }
 
53
-#ifdef _LIBC
 
54
+/* #ifdef _LIBC */
 
55
 #undef dbopen
 
56
 weak_alias (__dbopen, dbopen)
 
57
-#endif
 
58
+/* #endif */
 
59
 
 
60
 static int
 
61
 __dberr __P((void))
 
62
Index: b/mpool/mpool.c
 
63
===================================================================
 
64
--- a/mpool/mpool.c
 
65
+++ b/mpool/mpool.c
 
66
@@ -50,7 +50,7 @@
 
67
 #define        __MPOOLINTERFACE_PRIVATE
 
68
 #include <mpool.h>
 
69
 
 
70
-#ifdef _LIBC
 
71
+/* #ifdef _LIBC */
 
72
 /* In the GNU C library we must not pollute the namespace because libdb is
 
73
    needed by libnss_db.  */
 
74
 #define mpool_open __mpool_open
 
75
@@ -60,7 +60,7 @@
 
76
 #define mpool_put __mpool_put
 
77
 #define mpool_sync __mpool_sync
 
78
 #define mpool_close __mpool_close
 
79
-#endif
 
80
+/* #endif */
 
81
 
 
82
 static BKT *mpool_bkt __P((MPOOL *));
 
83
 static BKT *mpool_look __P((MPOOL *, pgno_t));
 
84
@@ -313,7 +313,7 @@
 
85
        return (fsync(mp->fd) ? RET_ERROR : RET_SUCCESS);
 
86
 }
 
87
 
 
88
-#ifdef _LIBC
 
89
+/* #ifdef _LIBC */
 
90
 #undef mpool_open
 
91
 #undef mpool_filter
 
92
 #undef mpool_new
 
93
@@ -328,7 +328,7 @@
 
94
 weak_alias (__mpool_put, mpool_put)
 
95
 weak_alias (__mpool_close, mpool_close)
 
96
 weak_alias (__mpool_sync, mpool_sync)
 
97
-#endif
 
98
+/* #endif */
 
99
 
 
100
 /*
 
101
  * mpool_bkt