blob: 369aa588eea3968a454b60b5ccccf611fa6cbd4f [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
Patrick Williams213cb262021-08-07 19:21:33 -050010@@ -443,8 +443,6 @@ check_include_file("stdlib.h"
Andrew Geisslerf1e44062021-04-15 15:52:46 -050011 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)
Patrick Williams213cb262021-08-07 19:21:33 -050019@@ -479,8 +477,6 @@ endif()
Andrew Geisslerf1e44062021-04-15 15:52:46 -050020
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
Patrick Williams213cb262021-08-07 19:21:33 -050028@@ -608,17 +604,11 @@ check_type_size("time_t" SIZEOF_TIME_T)
Andrew Geisslerf1e44062021-04-15 15:52:46 -050029 # 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
Patrick Williams213cb262021-08-07 19:21:33 -050047@@ -632,10 +622,9 @@ else()
Andrew Geisslerf1e44062021-04-15 15:52:46 -050048 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)