fix compilation without -DEDITdiff -r1.34 -r1.35 src/bin/csh/Makefile
(christos)
--- src/bin/csh/Makefile 2013/01/22 20:35:29 1.34
+++ src/bin/csh/Makefile 2013/01/22 22:40:31 1.35
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.34 2013/01/22 20:35:29 christos Exp $ | 1 | # $NetBSD: Makefile,v 1.35 2013/01/22 22:40:31 christos Exp $ | |
2 | # @(#)Makefile 8.1 (Berkeley) 5/31/93 | 2 | # @(#)Makefile 8.1 (Berkeley) 5/31/93 | |
3 | # | 3 | # | |
4 | # C Shell with process control; VM/UNIX VAX Makefile | 4 | # C Shell with process control; VM/UNIX VAX Makefile | |
5 | # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria | 5 | # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria | |
6 | # | 6 | # | |
7 | # To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile. | 7 | # To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile. | |
8 | 8 | |||
9 | .include <bsd.own.mk> | 9 | .include <bsd.own.mk> | |
10 | 10 | |||
11 | PROG= csh | 11 | PROG= csh | |
12 | DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS | 12 | DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS | |
13 | # - Not integrated with history | 13 | # - Not integrated with history | |
14 | # - Does not handle escaped prompts. | 14 | # - Does not handle escaped prompts. | |
@@ -51,22 +51,22 @@ const.h: const.c | @@ -51,22 +51,22 @@ const.h: const.c | |||
51 | .if make(install) | 51 | .if make(install) | |
52 | SUBDIR+=USD.doc | 52 | SUBDIR+=USD.doc | |
53 | .endif | 53 | .endif | |
54 | 54 | |||
55 | # XXX Only GCC 4.1 problem | 55 | # XXX Only GCC 4.1 problem | |
56 | .if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax" | 56 | .if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax" | |
57 | COPTS.parse.c+= -O0 | 57 | COPTS.parse.c+= -O0 | |
58 | .endif | 58 | .endif | |
59 | COPTS.err.c = -Wno-format-nonliteral | 59 | COPTS.err.c = -Wno-format-nonliteral | |
60 | COPTS.printf.c = -Wno-format-nonliteral | 60 | COPTS.printf.c = -Wno-format-nonliteral | |
61 | COPTS.proc.c = -Wno-format-nonliteral | 61 | COPTS.proc.c = -Wno-format-nonliteral | |
62 | 62 | |||
63 | .if 0 | 63 | .if 0 | |
64 | LDADD+=-lutil | |||
65 | DPADD+=${LIBUTIL} | |||
66 | .elese | |||
67 | LDADD+=-ledit -lutil | 64 | LDADD+=-ledit -lutil | |
68 | DPADD+=${LIBEDIT} ${LIBUTIL} | 65 | DPADD+=${LIBEDIT} ${LIBUTIL} | |
66 | .else | |||
67 | LDADD+=-lutil | |||
68 | DPADD+=${LIBUTIL} | |||
69 | .endif | 69 | .endif | |
70 | 70 | |||
71 | .include <bsd.prog.mk> | 71 | .include <bsd.prog.mk> | |
72 | .include <bsd.subdir.mk> | 72 | .include <bsd.subdir.mk> |
--- src/bin/csh/csh.h 2013/01/22 20:35:29 1.23
+++ src/bin/csh/csh.h 2013/01/22 22:40:31 1.24
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: csh.h,v 1.23 2013/01/22 20:35:29 christos Exp $ */ | 1 | /* $NetBSD: csh.h,v 1.24 2013/01/22 22:40:31 christos Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1980, 1991, 1993 | 4 | * Copyright (c) 1980, 1991, 1993 | |
5 | * The Regents of the University of California. All rights reserved. | 5 | * The Regents of the University of California. All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -542,17 +542,17 @@ Char *word_chars; | @@ -542,17 +542,17 @@ Char *word_chars; | |||
542 | 542 | |||
543 | Char *STR_SHELLPATH; | 543 | Char *STR_SHELLPATH; | |
544 | 544 | |||
545 | #include <paths.h> | 545 | #include <paths.h> | |
546 | #ifdef _PATH_BSHELL | 546 | #ifdef _PATH_BSHELL | |
547 | Char *STR_BSHELL; | 547 | Char *STR_BSHELL; | |
548 | #endif | 548 | #endif | |
549 | Char *STR_WORD_CHARS; | 549 | Char *STR_WORD_CHARS; | |
550 | Char **STR_environ; | 550 | Char **STR_environ; | |
551 | 551 | |||
552 | #ifdef EDIT | 552 | #ifdef EDIT | |
553 | #include <histedit.h> | 553 | #include <histedit.h> | |
554 | EditLine *el; | 554 | EditLine *el; | |
555 | int editing; | |||
556 | #endif | 555 | #endif | |
556 | int editing; | |||
557 | 557 | |||
558 | #endif /* !_CSH_H_ */ | 558 | #endif /* !_CSH_H_ */ |