pkgsrc/chat/icb/patches/patch-bc
joerg 21320c5685 Teach the backbone of NetBSD communication some ISO C tricks.
- no errno, use errno.h
- no redefinition of function parameters as local variables
  [how did this ever work?!]
- malloc comes from stdlib.h
- NAME_MAX is prefered when available, it is POSIX
- strchr, strpbrk, strspn, strstr, strtol and strtoul can and
  should be used from libc.
- remove tcl version of string.h, system header is good enough
  (and if it doesn't have index, it would have been broken anyway)
2005-12-14 13:53:24 +00:00

61 lines
1.3 KiB
Text

$NetBSD: patch-bc,v 1.1 2005/12/14 13:53:24 joerg Exp $
--- tcl/Make.orig 1995-02-24 21:19:48.000000000 +0000
+++ tcl/Make
@@ -11,13 +11,7 @@ CFLAGS = $(TCLCFLAGS) -I. -DTCL_VERSION=
SRC = \
panic.c \
- strchr.c \
strerror.c \
- strpbrk.c \
- strspn.c \
- strstr.c \
- strtol.c \
- strtoul.c \
tclAssem.c \
tclBasic.c \
tclCmdAH.c \
@@ -30,13 +24,7 @@ SRC = \
OBJ = \
panic.o \
- strchr.o \
strerror.o \
- strpbrk.o \
- strspn.o \
- strstr.o \
- strtol.o \
- strtoul.o \
tclAssem.o \
tclBasic.o \
tclCmdAH.o \
@@ -80,28 +68,3 @@ depend:
$(MAKEDEPEND) $(DEPENDFLAGS) *.c
# DO NOT DELETE THIS LINE -- make depend depends on it.
-
-panic.o: stdlib.h
-strchr.o: string.h
-strerror.o: string.h
-strpbrk.o: string.h
-strspn.o: string.h
-strtol.o: stdlib.h
-strtoul.o: sprite.h stdlib.h
-tclAssem.o: tclInt.h tcl.h stdlib.h
-tclAssem.o: string.h
-tclBasic.o: stdlib.h string.h
-tclBasic.o: tclInt.h tcl.h
-tclCmdAH.o: stdlib.h string.h
-tclCmdAH.o: tclInt.h tcl.h
-tclCmdIZ.o: stdlib.h string.h
-tclCmdIZ.o: tclInt.h tcl.h
-tclExpr.o: tcl.h tclInt.h
-tclGlob.o: stdlib.h string.h
-tclGlob.o: tcl.h
-tclHistory.o: tclInt.h tcl.h
-tclHistory.o: stdlib.h string.h
-tclProc.o: stdlib.h string.h
-tclProc.o: tclInt.h tcl.h
-tclUtil.o: stdlib.h string.h tcl.h
-tclUtil.o: tclInt.h