$NetBSD: patch-aa,v 1.2 1999/11/28 14:37:41 itojun Exp $ --- ipv6socket_scrub.c.orig Fri Oct 15 18:51:40 1999 +++ ipv6socket_scrub.c Sun Nov 28 23:28:38 1999 @@ -308,7 +308,7 @@ -e 's/#.*if/_#_if/' \ -e 's/#.*else/_#_else/' \ %s | \ - /usr/ccs/lib/cpp -BP 2>&1 | \ + /usr/bin/cpp -P 2>&1 | \ /usr/bin/sed -e 's/_#_include/#include/' \ -e 's/_#_end/#end/' \ -e 's/_#_if/#if/' \ @@ -664,8 +664,8 @@ if ((stat("/usr/bin/sed", &statbuff) == -1) || - stat("/usr/ccs/lib/cpp", &statbuff) == -1) { - fprintf (stderr, "\nCannot find /usr/bin/sed and/or /usr/ccs/lib/cpp -BP.\n Terminating...\n"); + stat("/usr/bin/cpp", &statbuff) == -1) { + fprintf (stderr, "\nCannot find /usr/bin/sed and/or /usr/bin/cpp -P.\n Terminating...\n"); exit (2); } @@ -1343,7 +1343,7 @@ } if (check_file (buf,ignore_conf,pri_conf,sec_conf,fo1,fo2,tmpfile)) { - fprintf (stderr, "\nCannot process file %s. Cannot find /usr/bin/sed and/or /usr/ccs/lib/cpp -BP.\n Terminating...\n",buf); + fprintf (stderr, "\nCannot process file %s. Cannot find /usr/bin/sed and/or /usr/bin/cpp -P.\n Terminating...\n",buf); unlink(tmpfile); exit (2); } --- Makefile.orig Wed Oct 13 18:01:46 1999 +++ Makefile Sun Nov 28 23:26:42 1999 @@ -1,5 +1,5 @@ CC = cc -CFLAGS = -xO3 +CFLAGS = -O3 LDFLAGS = PROG = ipv6socket_scrub