Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Sep 2010 06:42:43 GMT
From:      Derrick Brashear <shadow@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/150772: csup should include limits.h instead of sys/limits.h
Message-ID:  <201009210642.o8L6ghK4085124@www.freebsd.org>
Resent-Message-ID: <201009210650.o8L6o1HP041827@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         150772
>Category:       bin
>Synopsis:       csup should include limits.h instead of sys/limits.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 21 06:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Derrick Brashear
>Release:        n/a
>Organization:
OpenAFS
>Environment:
Darwin scully-2.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

>Description:
All but one inclusion of limits.h use the portable (/usr/include) header path; One uses sys/limits.h, which is included by limits.h.
>How-To-Repeat:
try to build on MacOS
>Fix:
Index: diff.c
===================================================================
--- diff.c      (revision 212951)
+++ diff.c      (working copy)
@@ -26,7 +26,7 @@
  * $FreeBSD$
  */
 
-#include <sys/limits.h>
+#include <limits.h>
 
 #include <assert.h>
 #include <err.h>


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009210642.o8L6ghK4085124>