|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/base/nssdb/libc_hacks.patch
|
|
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
--- ./src/db-XXX.c.orig 2003-05-03 08:46:16.000000000 +0200
|
|
+++ ./src/db-XXX.c 2003-05-03 08:46:21.000000000 +0200
|
|
@@ -17,6 +17,10 @@
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
+#include <features.h>
|
|
+#define NOT_IN_libc
|
|
+#define _LIBC
|
|
+
|
|
#include <alloca.h>
|
|
#include <ctype.h>
|
|
#include <db.h>
|
|
--- ./src/db-alias.c.orig 2003-05-03 08:40:34.000000000 +0200
|
|
+++ ./src/db-alias.c 2003-05-03 08:45:34.000000000 +0200
|
|
@@ -18,6 +18,10 @@
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
+#include <features.h>
|
|
+#define NOT_IN_libc
|
|
+#define _LIBC
|
|
+
|
|
#include <aliases.h>
|
|
#include <alloca.h>
|
|
#include <ctype.h>
|
|
--- ./src/db-netgrp.c.orig 2003-05-03 08:46:33.000000000 +0200
|
|
+++ ./src/db-netgrp.c 2003-05-03 08:46:39.000000000 +0200
|
|
@@ -18,6 +18,10 @@
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
+#include <features.h>
|
|
+#define NOT_IN_libc
|
|
+#define _LIBC
|
|
+
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
#include <netgroup.h>
|
|
--- ./src/makedb.c.orig 2003-05-03 08:47:21.000000000 +0200
|
|
+++ ./src/makedb.c 2003-05-03 08:48:09.000000000 +0200
|
|
@@ -18,6 +18,8 @@
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
+#define _GNU_SOURCE
|
|
+
|
|
#ifdef HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
--- ./src/Makefile.in.orig 2003-05-03 08:49:38.000000000 +0200
|
|
+++ ./src/Makefile.in 2003-05-03 08:49:49.000000000 +0200
|
|
@@ -105,7 +105,7 @@
|
|
|
|
noinst_HEADERS = db-compat.h netgroup.h nss_db.h
|
|
|
|
-INCLUDES = @DB_CFLAGS@ -D_LIBC -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
|
|
+INCLUDES = @DB_CFLAGS@ -D_GNU_SOURCE -I../intl -DLOCALEDIR=\"$(localedir)\"
|
|
|
|
|
|
EXTRA_DIST = libnss_db.map
|