kern/144019: [patch] gcc complains about implicit declaration of isalnum() in contrib/gdtoa/hexnan.c

Alexander Best alexbestms at wwu.de
Tue Feb 16 21:00:09 UTC 2010


>Number:         144019
>Category:       kern
>Synopsis:       [patch] gcc complains about implicit declaration of isalnum() in contrib/gdtoa/hexnan.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 16 21:00:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Best
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD otaku 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r203786M: Thu Feb 11 23:40:42 CET 2010     root at otaku:/usr/obj/usr/src/sys/ARUNDEL  amd64
>Description:
little patch to stop gcc from complaining about the implicit declaration of
isalnum().

although this file comes from vendor contributed software (gdtoa) the cause
for the warning is related to local freebsd specific changes in the file which
are not part of the original file shipped by the vendor. so i guess this can
be fixed directly in head.

cheers.
alex
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: contrib/gdtoa/hexnan.c
===================================================================
--- contrib/gdtoa/hexnan.c	(revision 203939)
+++ contrib/gdtoa/hexnan.c	(working copy)
@@ -31,6 +31,8 @@
 
 /* $FreeBSD$ */
 
+#include <ctype.h>
+
 #include "gdtoaimp.h"
 
  static void


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list