From 8b9b7712d967baf400d55cd51cabb3fc31cc7ee0 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 16 Jan 2015 15:17:34 +0000 Subject: [PATCH] The make code has "bootstrap", to allow it to be brought up on other systems. Rarely used & tested -- perhaps once a decade. Perhaps not even once this decade? Anyways, #define PATH_MAX (MAXPATHLEN+1) is quite wrong. Delete the chunk, assuming any system this is ported to has PATH_MAX. --- usr.bin/make/main.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 7f2f0eeaaab..7b2e638550a 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.104 2014/07/15 23:07:19 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.105 2015/01/16 15:17:34 deraadt Exp $ */ /* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */ /* @@ -68,15 +68,6 @@ #include "make.h" #include "dump.h" -#ifndef PATH_MAX -# ifdef MAXPATHLEN -# define PATH_MAX (MAXPATHLEN+1) -# else -# define PATH_MAX 1024 -# endif -#endif - - #define MAKEFLAGS ".MAKEFLAGS" static LIST to_create; /* Targets to be made */ -- 2.20.1