Module: kamailio
Branch: master
Commit: 3fd0cea891b13c4ba831a2e6d8d5620dc4106efb
URL:
https://github.com/kamailio/kamailio/commit/3fd0cea891b13c4ba831a2e6d8d5620…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2019-04-23T11:26:14+03:00
core: fix compilation error
- 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)) {
^
---
Modified: src/core/tcp_main.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3fd0cea891b13c4ba831a2e6d8d5620…
Patch:
https://github.com/kamailio/kamailio/commit/3fd0cea891b13c4ba831a2e6d8d5620…
---
diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c
index 20e16606c0..85e06e9513 100644
--- a/src/core/tcp_main.c
+++ b/src/core/tcp_main.c
@@ -50,6 +50,7 @@
#include <sys/uio.h> /* writev*/
#include <netdb.h>
#include <stdlib.h> /*exit() */
+#include <stdint.h> /* UINT32_MAX */
#include <unistd.h>