Dash:
[t2-trunk.git] / package / base / nssdb / libc_hacks.patch
blob2e1c9c2c9cc01a75905813783879bfc6a6c33afe
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../nssdb/libc_hacks.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./src/db-XXX.c.orig 2003-05-03 08:46:16.000000000 +0200
19 +++ ./src/db-XXX.c 2003-05-03 08:46:21.000000000 +0200
20 @@ -17,6 +17,10 @@
21 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
24 +#include <features.h>
25 +#define NOT_IN_libc
26 +#define _LIBC
28 #include <alloca.h>
29 #include <ctype.h>
30 #include <db.h>
31 --- ./src/db-alias.c.orig 2003-05-03 08:40:34.000000000 +0200
32 +++ ./src/db-alias.c 2003-05-03 08:45:34.000000000 +0200
33 @@ -18,6 +18,10 @@
34 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
35 Boston, MA 02111-1307, USA. */
37 +#include <features.h>
38 +#define NOT_IN_libc
39 +#define _LIBC
41 #include <aliases.h>
42 #include <alloca.h>
43 #include <ctype.h>
44 --- ./src/db-netgrp.c.orig 2003-05-03 08:46:33.000000000 +0200
45 +++ ./src/db-netgrp.c 2003-05-03 08:46:39.000000000 +0200
46 @@ -18,6 +18,10 @@
47 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
48 Boston, MA 02111-1307, USA. */
50 +#include <features.h>
51 +#define NOT_IN_libc
52 +#define _LIBC
54 #include <errno.h>
55 #include <fcntl.h>
56 #include <netgroup.h>
57 --- ./src/makedb.c.orig 2003-05-03 08:47:21.000000000 +0200
58 +++ ./src/makedb.c 2003-05-03 08:48:09.000000000 +0200
59 @@ -18,6 +18,8 @@
60 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
61 Boston, MA 02111-1307, USA. */
63 +#define _GNU_SOURCE
65 #ifdef HAVE_CONFIG_H
66 # include <config.h>
67 #endif
68 --- ./src/Makefile.in.orig 2003-05-03 08:49:38.000000000 +0200
69 +++ ./src/Makefile.in 2003-05-03 08:49:49.000000000 +0200
70 @@ -105,7 +105,7 @@
72 noinst_HEADERS = db-compat.h netgroup.h nss_db.h
74 -INCLUDES = @DB_CFLAGS@ -D_LIBC -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
75 +INCLUDES = @DB_CFLAGS@ -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
78 EXTRA_DIST = libnss_db.map