NetBSD-Bugs archive

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

toolchain/57500: tools/compat/regex.h - missing tools/compat/regex.h



>Number:         57500
>Category:       toolchain
>Synopsis:       tools/compat/regex.h - missing tools/compat/regex.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 03 18:40: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:
The __BEGIN_DECLS__ and __END_DECLS__ macros are not present unless nbtool_config.h is included


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




>Fix:
diff --git a/tools/compat/regex.h b/tools/compat/regex.h                                                                                                                                                           
index 1619a9da6094..5d2758684878 100644                                                                                                                                                                            
--- a/tools/compat/regex.h                                                                                                                                                                                         
+++ b/tools/compat/regex.h                                                                                                                                                                                         
@@ -1,3 +1,6 @@                                                                                                                                                                                                    
+                                                                                                                                                                                                                  
+                                                                                                                                                                                                                  
 /*     $NetBSD: regex.h,v 1.5 2018/03/11 18:32:43 christos Exp $ */                                                                                                                                               
                                                                                                                                                                                                                   
+#include "nbtool_config.h"                                                                                                                                                                                        
 #include "../../include/regex.h"                                                                                                                                                                                  




Home | Main Index | Thread Index | Old Index