Ticket #61515: explicit-declarations.patch
File explicit-declarations.patch, 6.3 KB (added by larryv (Lawrence Velázquez), 4 years ago) |
---|
-
aczsh.m4
https://sourceforge.net/p/zsh/code/ci/bd647c156549b2f666e5fae80f1ca674b6cde895/ commit bd647c156549b2f666e5fae80f1ca674b6cde895 Author: Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> Date: Mon Nov 16 20:59:51 2020 +0900 47560: add includes/prototypes for tests in configure On macOS 11.0 it is now an error to use a function without prototype.
old new AC_TRY_COMMAND($DLLD -o conftest1.$DL_EX 118 118 AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&AC_FD_CC) && 119 119 AC_TRY_COMMAND($DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&AC_FD_CC); then 120 120 AC_TRY_RUN([ 121 #include <stdlib.h> 121 122 #ifdef HPUX10DYNAMIC 122 123 #include <dl.h> 123 124 #define RTLD_LAZY BIND_DEFERRED … … AC_TRY_COMMAND($DLLD -o conftest1.$DL_EX 199 200 AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&AC_FD_CC) && 200 201 AC_TRY_COMMAND($DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&AC_FD_CC); then 201 202 AC_TRY_RUN([ 203 #include <stdlib.h> 202 204 #ifdef HPUX10DYNAMIC 203 205 #include <dl.h> 204 206 #define RTLD_LAZY BIND_DEFERRED … … AC_TRY_COMMAND($DLLD -o conftest1.$DL_EX 274 276 AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&AC_FD_CC) && 275 277 AC_TRY_COMMAND($DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&AC_FD_CC); then 276 278 AC_TRY_RUN([ 279 #include <stdlib.h> 277 280 #ifdef HPUX10DYNAMIC 278 281 #include <dl.h> 279 282 #define RTLD_LAZY BIND_DEFERRED … … AC_TRY_COMMAND($DLLD -o conftest1.$DL_EX 343 346 save_ldflags=$LDFLAGS 344 347 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" 345 348 AC_TRY_RUN([ 349 #include <stdlib.h> 346 350 #ifdef HPUX10DYNAMIC 347 351 #include <dl.h> 348 352 #define RTLD_LAZY BIND_DEFERRED … … elif 416 420 save_ldflags=$LDFLAGS 417 421 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS -s" 418 422 AC_TRY_RUN([ 423 #include <stdlib.h> 419 424 #ifdef HPUX10DYNAMIC 420 425 #include <dl.h> 421 426 #define RTLD_LAZY BIND_DEFERRED … … echo 'int fred () { return 42; }' > conf 483 488 if AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&AC_FD_CC) && 484 489 AC_TRY_COMMAND($DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS -s conftest1.o $LIBS 1>&AC_FD_CC); then 485 490 AC_TRY_RUN([ 491 #include <stdlib.h> 486 492 #ifdef HPUX10DYNAMIC 487 493 #include <dl.h> 488 494 #define RTLD_LAZY BIND_DEFERRED -
configure
old new else 8851 8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852 8852 /* end confdefs.h. */ 8853 8853 8854 #include <fcntl.h> 8855 #include <stdlib.h> 8856 int tgetent(char *, char *); 8857 char *tgetstr(char *, char **); 8854 8858 main() 8855 8859 { 8856 8860 char buf[4096]; … … else 8897 8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898 8902 /* end confdefs.h. */ 8899 8903 8904 #include <fcntl.h> 8905 #include <stdlib.h> 8906 int tgetent(char *, char*); 8907 char *tgetstr(char *, char **); 8900 8908 main() 8901 8909 { 8902 8910 char buf[4096]; … … else 9805 9813 #include <sys/time.h> 9806 9814 #endif 9807 9815 #include <sys/resource.h> 9816 #include <stdlib.h> 9808 9817 main(){struct rlimit r;exit(sizeof(r.rlim_cur) <= sizeof(long));} 9809 9818 _ACEOF 9810 9819 if ac_fn_c_try_run "$LINENO"; then : … … else 9836 9845 #endif 9837 9846 #include <stdio.h> 9838 9847 #include <sys/resource.h> 9848 #include <stdlib.h> 9839 9849 main() { 9840 9850 struct rlimit r; 9841 9851 char buf[20]; … … else 9881 9891 #include <sys/time.h> 9882 9892 #endif 9883 9893 #include <sys/resource.h> 9894 #include <stdlib.h> 9884 9895 main(){struct rlimit r;r.rlim_cur=-1;exit(r.rlim_cur<0);} 9885 9896 _ACEOF 9886 9897 if ac_fn_c_try_run "$LINENO"; then : … … else 11660 11671 11661 11672 #include <fcntl.h> 11662 11673 #include <signal.h> 11674 #include <unistd.h> 11675 #include <stdlib.h> 11676 #include <sys/stat.h> 11663 11677 main() 11664 11678 { 11665 11679 char c; … … else 11718 11732 11719 11733 #include <unistd.h> 11720 11734 #include <fcntl.h> 11735 #include <stdlib.h> 11721 11736 main() 11722 11737 { 11723 11738 int ret; … … else 11767 11782 #include <unistd.h> 11768 11783 #include <signal.h> 11769 11784 #include <errno.h> 11785 #include <stdlib.h> 11770 11786 main() 11771 11787 { 11772 11788 int pid = (getpid() + 10000) & 0xffffff; … … else 11808 11824 11809 11825 #include <signal.h> 11810 11826 #include <unistd.h> 11827 #include <stdlib.h> 11811 11828 int child=0; 11812 11829 void handler(sig) 11813 11830 int sig; … … else 11882 11899 #include <sys/types.h> 11883 11900 #include <unistd.h> 11884 11901 #include <fcntl.h> 11902 #include <stdlib.h> 11885 11903 main() { 11886 11904 int fd; 11887 11905 int ret; … … else 11942 11960 /* end confdefs.h. */ 11943 11961 11944 11962 #include <pwd.h> 11963 #include <stdio.h> 11964 #include <string.h> 11965 #include <stdlib.h> 11966 #include <unistd.h> 11945 11967 main() { 11946 11968 struct passwd *pw1, *pw2; 11947 11969 char buf[1024], name[1024]; … … else 12346 12368 /* Test for whether ELF binaries are produced */ 12347 12369 #include <fcntl.h> 12348 12370 #include <stdlib.h> 12371 #include <unistd.h> 12349 12372 main(argc, argv) 12350 12373 int argc; 12351 12374 char *argv[]; … … else 12554 12577 /* end confdefs.h. */ 12555 12578 12556 12579 #include <stdio.h> 12580 #include <stdlib.h> 12557 12581 #ifdef HPUX10DYNAMIC 12558 12582 #include <dl.h> 12559 12583 #define RTLD_LAZY BIND_DEFERRED … … else 12680 12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12681 12705 /* end confdefs.h. */ 12682 12706 12707 #include <stdlib.h> 12683 12708 #ifdef HPUX10DYNAMIC 12684 12709 #include <dl.h> 12685 12710 #define RTLD_LAZY BIND_DEFERRED … … else 12804 12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12805 12830 /* end confdefs.h. */ 12806 12831 12832 #include <stdlib.h> 12807 12833 #ifdef HPUX10DYNAMIC 12808 12834 #include <dl.h> 12809 12835 #define RTLD_LAZY BIND_DEFERRED … … else 12928 12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12929 12955 /* end confdefs.h. */ 12930 12956 12957 #include <stdlib.h> 12931 12958 #ifdef HPUX10DYNAMIC 12932 12959 #include <dl.h> 12933 12960 #define RTLD_LAZY BIND_DEFERRED … … else 13045 13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13046 13073 /* end confdefs.h. */ 13047 13074 13075 #include <stdlib.h> 13048 13076 #ifdef HPUX10DYNAMIC 13049 13077 #include <dl.h> 13050 13078 #define RTLD_LAZY BIND_DEFERRED … … else 13152 13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13153 13181 /* end confdefs.h. */ 13154 13182 13183 #include <stdlib.h> 13155 13184 #ifdef HPUX10DYNAMIC 13156 13185 #include <dl.h> 13157 13186 #define RTLD_LAZY BIND_DEFERRED … … else 13243 13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13244 13273 /* end confdefs.h. */ 13245 13274 13275 #include <stdlib.h> 13246 13276 #ifdef HPUX10DYNAMIC 13247 13277 #include <dl.h> 13248 13278 #define RTLD_LAZY BIND_DEFERRED … … else 13341 13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13342 13372 /* end confdefs.h. */ 13343 13373 13374 #include <stdlib.h> 13344 13375 #ifdef HPUX10DYNAMIC 13345 13376 #include <dl.h> 13346 13377 #define RTLD_LAZY BIND_DEFERRED … … else 13430 13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13431 13462 /* end confdefs.h. */ 13432 13463 13464 #include <stdlib.h> 13433 13465 #ifdef HPUX10DYNAMIC 13434 13466 #include <dl.h> 13435 13467 #define RTLD_LAZY BIND_DEFERRED