Skip to content

Commit 531a03f

Browse files
authored
Merge pull request #290 from autc04/macos-build-experiments
Fix macOS build
2 parents 9c7d938 + 2f5b3fd commit 531a03f

File tree

6 files changed

+7
-22
lines changed

6 files changed

+7
-22
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
5454
- job: macOS
5555
pool:
56-
vmImage: 'macOS-13'
56+
vmImage: 'macOS-15'
5757
timeoutInMinutes: 90
5858
steps:
5959
- checkout: self

binutils/zlib/zutil.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,6 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
139139

140140
#if defined(MACOS) || defined(TARGET_OS_MAC)
141141
# define OS_CODE 7
142-
# ifndef Z_SOLO
143-
# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
144-
# include <unix.h> /* for fdopen */
145-
# else
146-
# ifndef fdopen
147-
# define fdopen(fd,mode) NULL /* No fdopen() */
148-
# endif
149-
# endif
150-
# endif
151142
#endif
152143

153144
#ifdef __acorn

gcc/libcpp/config.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@
198198
/* Define to 1 if you have the `putc_unlocked' function. */
199199
#undef HAVE_PUTC_UNLOCKED
200200

201+
/* Define to 1 if you have the `setlocale' function. */
202+
#undef HAVE_SETLOCALE
203+
201204
/* Define to 1 if you can assemble SSE4 insns. */
202205
#undef HAVE_SSE4
203206

gcc/libcpp/configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5970,7 +5970,7 @@ _ACEOF
59705970

59715971

59725972

5973-
for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
5973+
for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked setlocale
59745974
do :
59755975
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59765976
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -6194,7 +6194,7 @@ fi
61946194
cat >>confdefs.h <<_ACEOF
61956195
#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
61966196
_ACEOF
6197-
ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6197+
ac_fn_c_check_decl "$LINENO" "unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
61986198
if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
61996199
ac_have_decl=1
62006200
else

gcc/libcpp/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ define(libcpp_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl
8181
fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnl
8282
fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
8383
putchar_unlocked putc_unlocked)
84-
AC_CHECK_FUNCS(libcpp_UNLOCKED_FUNCS)
84+
AC_CHECK_FUNCS(libcpp_UNLOCKED_FUNCS setlocale)
8585
AC_CHECK_DECLS([abort, asprintf, basename(char *), errno, getopt, vasprintf])
8686
AC_CHECK_DECLS(m4_split(m4_normalize(libcpp_UNLOCKED_FUNCS)))
8787

gcc/zlib/zutil.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,6 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
132132

133133
#if defined(MACOS) || defined(TARGET_OS_MAC)
134134
# define OS_CODE 7
135-
# ifndef Z_SOLO
136-
# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
137-
# include <unix.h> /* for fdopen */
138-
# else
139-
# ifndef fdopen
140-
# define fdopen(fd,mode) NULL /* No fdopen() */
141-
# endif
142-
# endif
143-
# endif
144135
#endif
145136

146137
#ifdef __acorn

0 commit comments

Comments
 (0)