aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-11-12 17:23:04 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-11-15 02:41:59 +0000
commitb30a2112e8896a48c7b7bb921ae03485a2d82c36 (patch)
tree946c9b6a49516b87f719fa524cf1d2be2750c008 /ConfigureChecks.cmake
parente5088eea4aa265aa0bedb3e8cf531dfd07f1c73f (diff)
regex: Prefer C99/POSIX types
Replace 'gssize' with 'ssize_t'. Add a CMake configure check for ssize_t. Fix missing "config.h" includes.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 328292e699..786f35c0de 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -103,6 +103,10 @@ check_struct_has_member("struct tm" tm_zone time.h HAVE_STRUC
#Symbols but NOT enums or types
check_symbol_exists(tzname "time.h" HAVE_TZNAME)
+# Types
+include(CheckTypeSize)
+check_type_size("ssize_t" SSIZE_T)
+
#
# Check if the libc vsnprintf() conforms to C99. If this fails we may
# need to fall-back on GLib I/O.