[sr-dev] git:master:3fd0cea8: core: fix compilation error

Mikko Lehto mslehto at iki.fi
Tue Apr 23 14:05:31 CEST 2019


Module: kamailio
Branch: master
Commit: 3fd0cea891b13c4ba831a2e6d8d5620dc4106efb
URL: https://github.com/kamailio/kamailio/commit/3fd0cea891b13c4ba831a2e6d8d5620dc4106efb

Author: Mikko Lehto <mslehto at iki.fi>
Committer: Mikko Lehto <mslehto at 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/3fd0cea891b13c4ba831a2e6d8d5620dc4106efb.diff
Patch: https://github.com/kamailio/kamailio/commit/3fd0cea891b13c4ba831a2e6d8d5620dc4106efb.patch

---

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>
 




More information about the sr-dev mailing list