From dan@dan.emsphone.com  Mon Jul  8 08:10:35 2002
Return-Path: <dan@dan.emsphone.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5D87637B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Jul 2002 08:10:35 -0700 (PDT)
Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D6C6043E09
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Jul 2002 08:10:34 -0700 (PDT)
	(envelope-from dan@dan.emsphone.com)
Received: (from dan@localhost)
	by dan.emsphone.com (8.12.5/8.12.5) id g68FAVWK003182;
	Mon, 8 Jul 2002 10:10:31 -0500 (CDT)
	(envelope-from dan)
Message-Id: <200207081510.g68FAVWK003182@dan.emsphone.com>
Date: Mon, 8 Jul 2002 10:10:31 -0500 (CDT)
From: Dan Nelson <dnelson@allantgroup.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] gindent-2.2.8 malloc.h fixes
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40346
>Category:       ports
>Synopsis:       [PATCH] gindent-2.2.8 malloc.h fixes
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 08 08:20:01 PDT 2002
>Closed-Date:    Sat Jul 13 09:54:39 PDT 2002
>Last-Modified:  Sat Jul 13 09:54:39 PDT 2002
>Originator:     Dan Nelson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
The Allant Group
>Environment:
System: FreeBSD dan.emsphone.com 5.0-CURRENT FreeBSD 5.0-CURRENT #176: Fri Jul 5 14:39:41 CDT 2002 dan@dan.emsphone.com:/usr/src/sys/i386/compile/DANSMP i386


	
>Description:

Ever since Oct 25, -current has refused to #include the deprecated
<malloc.h>.  gindent-2.2.8 has two instances where it tries to include
malloc.h without checking for HAVE_MALLOC_H.

	
>How-To-Repeat:
	
log into a -current machine, try to build ports/devel/gindent

>Fix:

Index: files/patch-ac
===================================================================
RCS file: files/patch-ac
diff -N files/patch-ac
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-ac	8 Jul 2002 00:23:28 -0000
@@ -0,0 +1,22 @@
+--- man/texinfo2man.c~	Thu Jan 17 13:28:51 2002
++++ man/texinfo2man.c	Sun Jul  7 19:22:42 2002
+@@ -1,5 +1,7 @@
+ #include <stdio.h>
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
+ #include <string.h>
+ #include <ctype.h>
+ 
+--- src/wildexp.c~	Tue Feb 26 14:38:27 2002
++++ src/wildexp.c	Sun Jul  7 19:22:43 2002
+@@ -24,7 +24,9 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <direct.h>
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
+ #include <ctype.h>
+ 
+ #include "sys.h"


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Sat Jul 13 09:54:31 PDT 2002 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40346 
>Unformatted:
