NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/57499: external/bsd/file/dist/src/softmagic.c is missing the limits.h header file when compiling on a Solaris 11.4 host



>Number:         57499
>Category:       toolchain
>Synopsis:       external/bsd/file/dist/src/softmagic.c is missing the limits.h header file when compiling on a Solaris 11.4 host
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 03 18:35:00 +0000 2023
>Originator:     Palle Lyckegaard
>Release:        current
>Organization:
NetBSD
>Environment:
SunOS gcc106.fsffrance.org 5.11 11.4.57.144.3 sun4v sparc sun4v logical-domain

>Description:
Seems to be fixed upstream already by (https://github.com/file/file/commit/52fb1a71424f02fd0703b6e5903e5dd334b9fa50)




>How-To-Repeat:
Issue a build.sh run on a Solaris 11.4 system




>Fix:
iff --git a/external/bsd/file/dist/src/softmagic.c b/external/bsd/file/dist/src/softmagic.c                                                                                                                       
index 7308af48e709..8c710ff1440b 100644                                                                                                                                                                            
--- a/external/bsd/file/dist/src/softmagic.c                                                                                                                                                                       
+++ b/external/bsd/file/dist/src/softmagic.c                                                                                                                                                                       
@@ -47,6 +47,7 @@ __RCSID("$NetBSD: softmagic.c,v 1.25 2022/09/24 20:21:46 christos Exp $");                                                                                                                       
 #include <ctype.h>                                                                                                                                                                                                
 #include <stdlib.h>                                                                                                                                                                                               
+#include <limits.h>                                                                                                                                                                                               
 #include <time.h>                                                                                                                                                                                                 
 #include "der.h"                                                                                                                                                                                                  
                                                                                                                                                                                                                   
 private int match(struct magic_set *, struct magic *, file_regex_t **, size_t,                                                                                                                                    






Home | Main Index | Thread Index | Old Index