From owner-freebsd-questions Thu Nov 22 4:22: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.atkielski.com (ASt-Lambert-101-2-1-14.abo.wanadoo.fr [193.251.59.14]) by hub.freebsd.org (Postfix) with ESMTP id 5025437B417 for ; Thu, 22 Nov 2001 04:21:57 -0800 (PST) Received: from contactdish (win.atkielski.com [10.0.0.10]) by freebie.atkielski.com (8.11.3/8.11.3) with SMTP id fAMCLsh80084 for ; Thu, 22 Nov 2001 13:21:55 +0100 (CET) (envelope-from anthony@freebie.atkielski.com) Message-ID: <01e801c17350$4677f890$0a00000a@atkielski.com> From: "Anthony Atkielski" To: "FreeBSD Questions" Subject: Changing source code and rebuilding kernel -- how do I maintain my changes? Date: Thu, 22 Nov 2001 13:21:50 +0100 Organization: Anthony's Home Page (development site) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In order to remove a diagnostic message, I need to change one line of if_xlreg.h in the source code. What is the proper procedure for changing the file and maintaining the change should the source code be updated? For the moment, I just copied the original source to if_xlreg.h.old in the same directory, then made my change, with a comment that I can grep if I need to find it in future. Is this a good way to do it? What happens when I refresh all the source with more recent versions? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message