Skip to content

Commit 5798f78

Browse files
author
wasiher
authored
bpo-41340: Removed fallback implementation for strdup (GH-21634)
1 parent f1d40f9 commit 5798f78

File tree

5 files changed

+2
-29
lines changed

5 files changed

+2
-29
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed fallback implementation for ``strdup``.

Python/strdup.c

Lines changed: 0 additions & 12 deletions
This file was deleted.

configure

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12829,19 +12829,6 @@ esac
1282912829

1283012830
fi
1283112831

12832-
ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
12833-
if test "x$ac_cv_func_strdup" = xyes; then :
12834-
$as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12835-
12836-
else
12837-
case " $LIBOBJS " in
12838-
*" strdup.$ac_objext "* ) ;;
12839-
*) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12840-
;;
12841-
esac
12842-
12843-
fi
12844-
1284512832

1284612833
for ac_func in getpgrp
1284712834
do :

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3970,7 +3970,7 @@ AC_CHECK_FUNCS(forkpty,,
39703970
# check for long file support functions
39713971
AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs)
39723972

3973-
AC_REPLACE_FUNCS(dup2 strdup)
3973+
AC_REPLACE_FUNCS(dup2)
39743974
AC_CHECK_FUNCS(getpgrp,
39753975
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[getpgrp(0);]])],
39763976
[AC_DEFINE(GETPGRP_HAVE_ARG, 1, [Define if getpgrp() must be called as getpgrp(0).])],

pyconfig.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,9 +1034,6 @@
10341034
/* Has stdatomic.h with atomic_int and atomic_uintptr_t */
10351035
#undef HAVE_STD_ATOMIC
10361036

1037-
/* Define to 1 if you have the `strdup' function. */
1038-
#undef HAVE_STRDUP
1039-
10401037
/* Define to 1 if you have the `strftime' function. */
10411038
#undef HAVE_STRFTIME
10421039

0 commit comments

Comments
 (0)