Skip to content

FreeBSD: U_TIMEZONE does not refer to a value #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
etcwilde opened this issue May 9, 2025 · 0 comments · May be fixed by #54
Open

FreeBSD: U_TIMEZONE does not refer to a value #56

etcwilde opened this issue May 9, 2025 · 0 comments · May be fixed by #54
Labels
bug Something isn't working

Comments

@etcwilde
Copy link

etcwilde commented May 9, 2025

putil.cpp uprv_timezone returns U_TIMEZONE, which on FreeBSD is a struct, not a value resulting in the following build failure:

/home/ewilde/Work/Swift-Project/swift-foundation-icu/icuSources/common/putil.cpp:650:12: error: 'timezone' does not refer to a value
  650 |     return U_TIMEZONE;                                                                
      |            ^                                                                          
<command line>:18:20: note: expanded from macro 'U_TIMEZONE'                                                                                                                                 
   18 | #define U_TIMEZONE timezone                                                           
      |                    ^                                                                  
/usr/include/sys/time.h:42:8: note: declared here                                                                                                                                            
   42 | struct timezone {                                                                     
      |        ^                                                                              
1 error generated.    
@etcwilde etcwilde added the bug Something isn't working label May 9, 2025
@etcwilde etcwilde changed the title U_TIMEZONE does not refer to a value FreeBSD: U_TIMEZONE does not refer to a value May 9, 2025
@etcwilde etcwilde linked a pull request May 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant