OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.6 KiB

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