Skip to content

Commit 45c50a1

Browse files
committed
Merge branch 'bs/config-mak-freebsd'
Drop FreeBSD 4 support and assume we are at least at FreeBSD 6 with memmem() supported. * bs/config-mak-freebsd: build: retire NO_UINTMAX_T config.mak.uname: set NO_MEMMEM only for functional version
2 parents e02d718 + 0392f97 commit 45c50a1

File tree

4 files changed

+3
-30
lines changed

4 files changed

+3
-30
lines changed

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ include shared.mak
114114
#
115115
# Define NO_INTPTR_T if you don't have intptr_t or uintptr_t.
116116
#
117-
# Define NO_UINTMAX_T if you don't have uintmax_t.
118-
#
119117
# Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
120118
# Patrick Mauritz).
121119
#
@@ -1918,9 +1916,6 @@ endif
19181916
ifdef NO_INTPTR_T
19191917
COMPAT_CFLAGS += -DNO_INTPTR_T
19201918
endif
1921-
ifdef NO_UINTMAX_T
1922-
BASIC_CFLAGS += -Duintmax_t=uint32_t
1923-
endif
19241919
ifdef NO_SOCKADDR_STORAGE
19251920
ifdef NO_IPV6
19261921
BASIC_CFLAGS += -Dsockaddr_storage=sockaddr_in

config.mak.uname

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,13 @@ ifeq ($(uname_S),FreeBSD)
302302
ifeq ($(firstword $(subst -, ,$(uname_R))),10.1)
303303
OLD_ICONV = YesPlease
304304
endif
305-
NO_MEMMEM = YesPlease
305+
ifeq ($(shell v=$(uname_R) && test $${v%%.*} -lt 12 && echo 1),1)
306+
NO_MEMMEM = UnfortunatelyYes
307+
endif
306308
BASIC_CFLAGS += -I/usr/local/include
307309
BASIC_LDFLAGS += -L/usr/local/lib
308310
DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
309311
USE_ST_TIMESPEC = YesPlease
310-
ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
311-
PTHREAD_LIBS = -pthread
312-
NO_UINTMAX_T = YesPlease
313-
NO_STRTOUMAX = YesPlease
314-
endif
315312
PYTHON_PATH = /usr/local/bin/python
316313
PERL_PATH = /usr/local/bin/perl
317314
HAVE_PATHS_H = YesPlease

configure.ac

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,14 +1148,6 @@ GIT_CHECK_FUNC(strlcpy,
11481148
[NO_STRLCPY=YesPlease])
11491149
GIT_CONF_SUBST([NO_STRLCPY])
11501150
#
1151-
# Define NO_UINTMAX_T if your platform does not have uintmax_t
1152-
AC_CHECK_TYPE(uintmax_t,
1153-
[NO_UINTMAX_T=],
1154-
[NO_UINTMAX_T=YesPlease],[
1155-
#include <inttypes.h>
1156-
])
1157-
GIT_CONF_SUBST([NO_UINTMAX_T])
1158-
#
11591151
# Define NO_STRTOUMAX if you don't have strtoumax in the C library.
11601152
GIT_CHECK_FUNC(strtoumax,
11611153
[NO_STRTOUMAX=],

meson.build

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,17 +1420,6 @@ if compiler.compiles('''
14201420
libgit_c_args += '-DHAVE_CLOCK_MONOTONIC'
14211421
endif
14221422

1423-
if not compiler.compiles('''
1424-
#include <inttypes.h>
1425-
1426-
void func(void)
1427-
{
1428-
uintmax_t x = 0;
1429-
}
1430-
''', name: 'uintmax_t')
1431-
libgit_c_args += '-DNO_UINTMAX_T'
1432-
endif
1433-
14341423
has_bsd_sysctl = false
14351424
if compiler.has_header('sys/sysctl.h')
14361425
if compiler.compiles('''

0 commit comments

Comments
 (0)