blob: 9de0a26dbbb600d63e15e8e12c46379e0a535130 [file] [log] [blame]
Andrew Geisslerf1e44062021-04-15 15:52:46 -05001Fixes checks not needed do to glibc 2.33
2
3Upstream-Status: Pending
4Signed-off-by: Armin Kuster <akuster808@gmail.com>
5
6Index: git/CMakeLists.txt
7===================================================================
8--- git.orig/CMakeLists.txt
9+++ git/CMakeLists.txt
10@@ -374,8 +373,6 @@ check_include_file("stdlib.h"
11 check_include_file("string.h" HAVE_STRING_H)
12 check_include_file("strings.h" HAVE_STRINGS_H)
13 check_include_file("sys/cdefs.h" HAVE_SYS_CDEFS_H)
14-check_include_file("sys/dl.h" HAVE_SYS_DL_H)
15-check_include_file("sys/fileio.h" HAVE_SYS_FILIO_H)
16 check_include_file("sys/mman.h" HAVE_SYS_MMAN_H)
17 check_include_file("sys/param.h" HAVE_SYS_PARAM_H)
18 check_include_file("sys/queue.h" HAVE_SYS_QUEUE_H)
19@@ -410,8 +407,6 @@ endif()
20
21 # int-types variants
22 check_include_file("inttypes.h" HAVE_INTTYPES_H)
23-check_include_file("sys/inttypes.h" HAVE_SYS_INTTYPES_H)
24-check_include_file("sys/int_types.h" HAVE_SYS_INT_TYPES_H)
25 check_include_file("stdint.h" HAVE_STDINT_H)
26
27 # this hack required to silence warnings on systems with inttypes.h
28@@ -539,17 +528,11 @@ check_type_size("time_t" SIZEOF_TIME_T)
29 # Checks for library functions.
30 include(CheckSymbolExists)
31 check_symbol_exists(_Exit "stdlib.h" HAVE__EXIT)
32-check_symbol_exists(accept4 "sys/types.h" HAVE_ACCEPT4)
33 check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
34-check_symbol_exists(stat64 "sys/stat.h" HAVE_STAT64)
35-check_symbol_exists(strcasestr "string.h" HAVE_STRCASESTR)
36 check_symbol_exists(strerror_r "string.h" HAVE_STRERROR_R)
37-check_symbol_exists(strlcat "string.h" HAVE_STRLCAT)
38-check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
39 check_symbol_exists(strndup "string.h" HAVE_STRNDUP)
40 check_symbol_exists(strnlen "string.h" HAVE_STRNLEN)
41-check_symbol_exists(strnstr "string.h" HAVE_STRNSTR)
42-check_symbol_exists(sysctlbyname "sysctl.h" HAVE_SYSCTLBYNAME)
43+check_symbol_exists(strcasecmp "string.h" HAVE_STRNCMP)
44 check_symbol_exists(timegm "time.h" HAVE_TIMEGM)
45 check_symbol_exists(vsnprintf "stdio.h" HAVE_VSNPRINTF)
46
47@@ -563,10 +546,9 @@ else()
48 check_symbol_exists(fseeko "stdio.h" HAVE_FSEEKO)
49 check_symbol_exists(getaddrinfo "netdb.h" HAVE_GETADDRINFO)
50 check_symbol_exists(getpagesize "unistd.h" HAVE_GETPAGESIZE)
51- check_symbol_exists(mkstemp "unistd.h" HAVE_MKSTEMP)
52 check_symbol_exists(poll "poll.h" HAVE_POLL)
53- check_symbol_exists(setgroups "unistd.h" HAVE_SETGROUPS)
54 check_symbol_exists(setsid "unistd.h" HAVE_SETSID)
55+ set(HAVE_SYSCONF_SC_PAGESIZE 1)
56 endif()
57
58 include(CheckSymbolExists)