Skip to content
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

core: fix compilation error #1934

Merged
merged 1 commit into from Apr 23, 2019
Merged

core: fix compilation error #1934

merged 1 commit into from Apr 23, 2019

Conversation

mslehto
Copy link
Member

@mslehto mslehto commented Apr 23, 2019

Pre-Submission Checklist

  • [✓] Commit message has the format required by CONTRIBUTING guide
  • [✓] Commits are split per component
  • [✓] Each component has a single commit
  • [✓] No commits to README files for modules

Type Of Change

  • [✓] Small bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would change existing functionality)

Checklist:

Description

Macro constant UINT32_MAX is defined in <stdint.h>.
GCC and Clang does not complain on Ubuntu 16
GCC and Clang complains on FreeBSD 11.

Backporting not needed, PROXY feature only in development branch 5.3.

- UINT32_MAX is defined in <stdint.h>

> CC (clang) [kamailio]           core/tcp_main.o
> core/tcp_main.c:1134:16: error: use of undeclared identifier 'UINT32_MAX'
>                         if (port == UINT32_MAX || port == 0 || port >= (1 << 16)) {
>                                     ^
@miconda miconda merged commit 285a671 into kamailio:master Apr 23, 2019
@mslehto mslehto deleted the UINT32_MAX branch April 23, 2019 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants