View | Details | Raw Unified | Return to bug 213474 | Differences between
and this patch

Collapse All | Expand All

(-)usr.bin/sed/Makefile (+4 lines)
Lines 8-13 Link Here
8
8
9
WARNS?=	2
9
WARNS?=	2
10
10
11
.if ${MK_GNU_SUPPORT} != "no"
12
CFLAGS+=-DGNUSED_COMPAT
13
.endif
14
11
.if ${MK_TESTS} != "no"
15
.if ${MK_TESTS} != "no"
12
SUBDIR+= tests
16
SUBDIR+= tests
13
.endif
17
.endif
(-)usr.bin/sed/compile.c (+3 lines)
Lines 746-751 Link Here
746
	while (cu_fgets(lbuf, sizeof(lbuf), NULL) != NULL) {
746
	while (cu_fgets(lbuf, sizeof(lbuf), NULL) != NULL) {
747
		op = s = text + size;
747
		op = s = text + size;
748
		p = lbuf;
748
		p = lbuf;
749
#ifndef GNUSED_COMPAT
750
		EATSPACE();
751
#endif
749
		for (esc_nl = 0; *p != '\0'; p++) {
752
		for (esc_nl = 0; *p != '\0'; p++) {
750
			if (*p == '\\' && p[1] != '\0' && *++p == '\n')
753
			if (*p == '\\' && p[1] != '\0' && *++p == '\n')
751
				esc_nl = 1;
754
				esc_nl = 1;

Return to bug 213474