diff -ur a/openssh-8.1p1/configure b/openssh-8.1p1/configure
a
|
b
|
|
7000 | 7299 | /* end confdefs.h. */ |
7001 | 7300 | |
| 7301 | #include <stdlib.h> |
7002 | 7302 | #define testmacro foo |
7003 | 7303 | #define testmacro bar |
7004 | 7304 | int |
7005 | 7305 | main () |
… |
… |
|
7372 | 7672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7373 | 7673 | /* end confdefs.h. */ |
7374 | 7674 | #include <mach-o/dyld.h> |
| 7675 | #include <stdlib.h> |
7375 | 7676 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) |
7376 | 7677 | exit(0); |
7377 | 7678 | else |
… |
… |
|
8681 | 8981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8682 | 8982 | /* end confdefs.h. */ |
8683 | 8983 | #include <stdio.h> |
| 8984 | #include <stdlib.h> |
8684 | 8985 | int |
8685 | 8986 | main () |
8686 | 8987 | { |
… |
… |
|
8832 | 9133 | |
8833 | 9134 | #include <libgen.h> |
8834 | 9135 | #include <string.h> |
8835 | | |
| 9136 | #include <stdlib.h> |
8836 | 9137 | int main(int argc, char **argv) { |
8837 | 9138 | char *s, buf[32]; |
8838 | 9139 | |
… |
… |
|
10201 | 10502 | /* end confdefs.h. */ |
10202 | 10503 | |
10203 | 10504 | #include <sys/types.h> |
| 10505 | #include <stdlib.h> |
10204 | 10506 | #include <dirent.h> |
10205 | 10507 | int |
10206 | 10508 | main () |
… |
… |
|
10587 | 10889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10588 | 10890 | /* end confdefs.h. */ |
10589 | 10891 | #include <histedit.h> |
| 10892 | #include <stdlib.h> |
10590 | 10893 | int |
10591 | 10894 | main () |
10592 | 10895 | { |
… |
… |
|
11742 | 12045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11743 | 12046 | /* end confdefs.h. */ |
11744 | 12047 | #include <stdio.h> |
| 12048 | #include <stdlib.h> |
11745 | 12049 | int |
11746 | 12050 | main () |
11747 | 12051 | { |
… |
… |
|
11950 | 12254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11951 | 12255 | /* end confdefs.h. */ |
11952 | 12256 | #include <stdio.h> |
| 12257 | #include <stdlib.h> |
11953 | 12258 | int |
11954 | 12259 | main () |
11955 | 12260 | { |
… |
… |
|
11994 | 12300 | /* end confdefs.h. */ |
11995 | 12301 | |
11996 | 12302 | #include <sys/types.h> |
| 12303 | #include <stdlib.h> |
| 12304 | #include <string.h> |
11997 | 12305 | #include <stdio.h> |
11998 | 12306 | |
11999 | 12307 | int |
… |
… |
|
12225 | 12533 | |
12226 | 12534 | #include <stdio.h> |
12227 | 12535 | #include <sys/fcntl.h> |
| 12536 | #include <stdlib.h> |
12228 | 12537 | #include <sys/types.h> |
12229 | 12538 | #include <sys/wait.h> |
12230 | 12539 | |
… |
… |
|
12296 | 12605 | #include <sys/socket.h> |
12297 | 12606 | #include <netdb.h> |
12298 | 12607 | #include <errno.h> |
| 12608 | #include <stdlib.h> |
12299 | 12609 | #include <netinet/in.h> |
12300 | 12610 | |
12301 | 12611 | #define TEST_PORT "2222" |
… |
… |
|
12386 | 12696 | #include <stdio.h> |
12387 | 12697 | #include <sys/socket.h> |
12388 | 12698 | #include <netdb.h> |
| 12699 | #include <stdlib.h> |
12389 | 12700 | #include <errno.h> |
12390 | 12701 | #include <netinet/in.h> |
12391 | 12702 | |
… |
… |
|
12474 | 12785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12475 | 12786 | /* end confdefs.h. */ |
12476 | 12787 | #include <shadow.h> |
| 12788 | #include <stdlib.h> |
12477 | 12789 | int |
12478 | 12790 | main () |
12479 | 12791 | { |
… |
… |
|
12788 | 13100 | /* end confdefs.h. */ |
12789 | 13101 | |
12790 | 13102 | #include <stdio.h> |
| 13103 | #include <stdlib.h> |
12791 | 13104 | #include <string.h> |
12792 | 13105 | #include <openssl/opensslv.h> |
12793 | 13106 | #include <openssl/crypto.h> |
… |
… |
|
12871 | 13184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12872 | 13185 | /* end confdefs.h. */ |
12873 | 13186 | |
| 13187 | #include <stdlib.h> |
12874 | 13188 | #include <string.h> |
12875 | 13189 | #include <openssl/opensslv.h> |
12876 | 13190 | #include <openssl/crypto.h> |
… |
… |
|
13111 | 13425 | /* end confdefs.h. */ |
13112 | 13426 | |
13113 | 13427 | #include <string.h> |
| 13428 | #include <stdlib.h> |
13114 | 13429 | #include <openssl/evp.h> |
13115 | 13430 | |
13116 | 13431 | int |
… |
… |
|
13148 | 13463 | /* end confdefs.h. */ |
13149 | 13464 | |
13150 | 13465 | #include <string.h> |
| 13466 | #include <stdlib.h> |
13151 | 13467 | #include <openssl/evp.h> |
13152 | 13468 | |
13153 | 13469 | int |
… |
… |
|
13187 | 13503 | /* end confdefs.h. */ |
13188 | 13504 | |
13189 | 13505 | #include <string.h> |
| 13506 | #include <stdlib.h> |
13190 | 13507 | #include <openssl/evp.h> |
13191 | 13508 | |
13192 | 13509 | int |
… |
… |
|
13232 | 13549 | /* end confdefs.h. */ |
13233 | 13550 | |
13234 | 13551 | #include <string.h> |
| 13552 | #include <stdlib.h> |
13235 | 13553 | #include <openssl/evp.h> |
13236 | 13554 | |
13237 | 13555 | int |
… |
… |
|
13516 | 13834 | #include <openssl/ecdh.h> |
13517 | 13835 | #include <openssl/ecdsa.h> |
13518 | 13836 | #include <openssl/evp.h> |
| 13837 | #include <stdlib.h> |
13519 | 13838 | #include <openssl/objects.h> |
13520 | 13839 | #include <openssl/opensslv.h> |
13521 | 13840 | |
… |
… |
|
13762 | 14081 | /* end confdefs.h. */ |
13763 | 14082 | |
13764 | 14083 | #include <string.h> |
| 14084 | #include <stdlib.h> |
13765 | 14085 | #include <openssl/rand.h> |
13766 | 14086 | |
13767 | 14087 | int |
… |
… |
|
14645 | 14965 | /* end confdefs.h. */ |
14646 | 14966 | |
14647 | 14967 | #include <stdio.h> |
| 14968 | #include <stdlib.h> |
14648 | 14969 | /* Why is this so damn hard? */ |
14649 | 14970 | #ifdef __GNUC__ |
14650 | 14971 | # undef __GNUC__ |
… |
… |
|
15872 | 16193 | |
15873 | 16194 | #include <stdio.h> |
15874 | 16195 | #include <string.h> |
| 16196 | #include <stdlib.h> |
15875 | 16197 | #ifdef HAVE_SNPRINTF |
15876 | 16198 | main() |
15877 | 16199 | { |
… |
… |
|
16757 | 17079 | |
16758 | 17080 | #include <sys/types.h> |
16759 | 17081 | #include <sys/socket.h> |
| 17082 | #include <stdlib.h> |
16760 | 17083 | #include <sys/uio.h> |
16761 | 17084 | |
16762 | 17085 | int |
… |
… |
|
16894 | 17217 | |
16895 | 17218 | #include <sys/types.h> |
16896 | 17219 | #include <sys/socket.h> |
| 17220 | #include <stdlib.h> |
16897 | 17221 | #include <sys/uio.h> |
16898 | 17222 | |
16899 | 17223 | int |
… |
… |
|
18430 | 18754 | |
18431 | 18755 | #include <stdio.h> |
18432 | 18756 | #include <string.h> |
| 18757 | #include <stdlib.h> |
18433 | 18758 | #ifdef HAVE_PATHS_H |
18434 | 18759 | #include <paths.h> |
18435 | 18760 | #endif |
… |
… |
|
18813 | 19138 | |
18814 | 19139 | /* find out what STDPATH is */ |
18815 | 19140 | #include <stdio.h> |
| 19141 | #include <stdlib.h> |
18816 | 19142 | #ifdef HAVE_PATHS_H |
18817 | 19143 | # include <paths.h> |
18818 | 19144 | #endif |
diff -ur a/openssh-8.1p1/configure.ac b/openssh-8.1p1/configure.ac
a
|
b
|
|
524 | 525 | AC_COMPILE_IFELSE( |
525 | 526 | [AC_LANG_PROGRAM([[ |
| 527 | #include <stdlib.h> |
526 | 528 | #define testmacro foo |
527 | 529 | #define testmacro bar]], |
528 | 530 | [[ exit(0); ]])], |
529 | 531 | [ AC_MSG_RESULT([yes]) ], |
… |
… |
|
643 | 645 | use_pie=auto |
644 | 646 | AC_MSG_CHECKING([if we have working getaddrinfo]) |
645 | 647 | AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <mach-o/dyld.h> |
| 648 | #include <stdlib.h> |
646 | 649 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) |
647 | 650 | exit(0); |
648 | 651 | else |
… |
… |
|
1204 | 1207 | esac |
1205 | 1208 | |
1206 | 1209 | AC_MSG_CHECKING([compiler and flags for sanity]) |
1207 | | AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> ]], [[ exit(0); ]])], |
| 1210 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> |
| 1211 | #include <stdlib.h> ]], [[ exit(0); ]])], |
1208 | 1212 | [ AC_MSG_RESULT([yes]) ], |
1209 | 1213 | [ |
1210 | 1214 | AC_MSG_RESULT([no]) |
… |
… |
|
1228 | 1232 | [AC_LANG_SOURCE([[ |
1229 | 1233 | #include <libgen.h> |
1230 | 1234 | #include <string.h> |
1231 | | |
| 1235 | #include <stdlib.h> |
1232 | 1236 | int main(int argc, char **argv) { |
1233 | 1237 | char *s, buf[32]; |
1234 | 1238 | |
… |
… |
|
1471 | 1475 | AC_RUN_IFELSE( |
1472 | 1476 | [AC_LANG_PROGRAM([[ |
1473 | 1477 | #include <sys/types.h> |
| 1478 | #include <stdlib.h> |
1474 | 1479 | #include <dirent.h>]], |
1475 | 1480 | [[ |
1476 | 1481 | struct dirent d; |
… |
… |
|
1585 | 1590 | ) |
1586 | 1591 | AC_MSG_CHECKING([if libedit version is compatible]) |
1587 | 1592 | AC_COMPILE_IFELSE( |
1588 | | [AC_LANG_PROGRAM([[ #include <histedit.h> ]], |
| 1593 | [AC_LANG_PROGRAM([[ #include <histedit.h> |
| 1594 | #include <stdlib.h> ]], |
1589 | 1595 | [[ |
1590 | 1596 | int i = H_SETSIZE; |
1591 | 1597 | el_init("", NULL, NULL, NULL); |
… |
… |
|
2033 | 2039 | |
2034 | 2040 | AC_MSG_CHECKING([for working fflush(NULL)]) |
2035 | 2041 | AC_RUN_IFELSE( |
2036 | | [AC_LANG_PROGRAM([[#include <stdio.h>]], [[fflush(NULL); exit(0);]])], |
| 2042 | [AC_LANG_PROGRAM([[#include <stdio.h> |
| 2043 | #include <stdlib.h> ]], [[fflush(NULL); exit(0);]])], |
2037 | 2044 | AC_MSG_RESULT([yes]), |
2038 | 2045 | [AC_MSG_RESULT([no]) |
2039 | 2046 | AC_DEFINE([FFLUSH_NULL_BUG], [1], |
… |
… |
|
2069 | 2076 | if test "x$ac_cv_func_snprintf" = "xyes" ; then |
2070 | 2077 | AC_MSG_CHECKING([whether snprintf correctly terminates long strings]) |
2071 | 2078 | AC_RUN_IFELSE( |
2072 | | [AC_LANG_PROGRAM([[ #include <stdio.h> ]], |
| 2079 | [AC_LANG_PROGRAM([[ #include <stdio.h> |
| 2080 | #include <stdlib.h> |
| 2081 | ]], |
2073 | 2082 | [[ |
2074 | 2083 | char b[5]; |
2075 | 2084 | snprintf(b,5,"123456789"); |
… |
… |
|
2091 | 2100 | AC_RUN_IFELSE( |
2092 | 2101 | [AC_LANG_PROGRAM([[ |
2093 | 2102 | #include <sys/types.h> |
| 2103 | #include <stdlib.h> |
| 2104 | #include <string.h> |
2094 | 2105 | #include <stdio.h> |
2095 | 2106 | ]], |
2096 | 2107 | [[ |
… |
… |
|
2212 | 2223 | [AC_LANG_PROGRAM([[ |
2213 | 2224 | #include <stdio.h> |
2214 | 2225 | #include <sys/fcntl.h> |
| 2226 | #include <stdlib.h> |
2215 | 2227 | #include <sys/types.h> |
2216 | 2228 | #include <sys/wait.h> |
2217 | 2229 | ]], [[ |
… |
… |
|
2260 | 2272 | #include <sys/socket.h> |
2261 | 2273 | #include <netdb.h> |
2262 | 2274 | #include <errno.h> |
| 2275 | #include <stdlib.h> |
2263 | 2276 | #include <netinet/in.h> |
2264 | 2277 | |
2265 | 2278 | #define TEST_PORT "2222" |
… |
… |
|
2327 | 2340 | #include <stdio.h> |
2328 | 2341 | #include <sys/socket.h> |
2329 | 2342 | #include <netdb.h> |
| 2343 | #include <stdlib.h> |
2330 | 2344 | #include <errno.h> |
2331 | 2345 | #include <netinet/in.h> |
2332 | 2346 | |
… |
… |
|
2387 | 2401 | |
2388 | 2402 | if test "x$check_for_conflicting_getspnam" = "x1"; then |
2389 | 2403 | AC_MSG_CHECKING([for conflicting getspnam in shadow.h]) |
2390 | | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <shadow.h> ]], |
| 2404 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <shadow.h> |
| 2405 | #include <stdlib.h> ]], |
2391 | 2406 | [[ exit(0); ]])], |
2392 | 2407 | [ |
2393 | 2408 | AC_MSG_RESULT([no]) |
… |
… |
|
2562 | 2577 | AC_RUN_IFELSE( |
2563 | 2578 | [AC_LANG_PROGRAM([[ |
2564 | 2579 | #include <stdio.h> |
| 2580 | #include <stdlib.h> |
2565 | 2581 | #include <string.h> |
2566 | 2582 | #include <openssl/opensslv.h> |
2567 | 2583 | #include <openssl/crypto.h> |
… |
… |
|
2623 | 2639 | AC_MSG_CHECKING([whether OpenSSL's headers match the library]) |
2624 | 2640 | AC_RUN_IFELSE( |
2625 | 2641 | [AC_LANG_PROGRAM([[ |
| 2642 | #include <stdlib.h> |
2626 | 2643 | #include <string.h> |
2627 | 2644 | #include <openssl/opensslv.h> |
2628 | 2645 | #include <openssl/crypto.h> |
… |
… |
|
2762 | 2779 | AC_LINK_IFELSE( |
2763 | 2780 | [AC_LANG_PROGRAM([[ |
2764 | 2781 | #include <string.h> |
| 2782 | #include <stdlib.h> |
2765 | 2783 | #include <openssl/evp.h> |
2766 | 2784 | ]], [[ |
2767 | 2785 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); |
… |
… |
|
2781 | 2799 | AC_LINK_IFELSE( |
2782 | 2800 | [AC_LANG_PROGRAM([[ |
2783 | 2801 | #include <string.h> |
| 2802 | #include <stdlib.h> |
2784 | 2803 | #include <openssl/evp.h> |
2785 | 2804 | ]], [[ |
2786 | 2805 | exit(EVP_aes_128_ctr() == NULL || |
… |
… |
|
2802 | 2821 | AC_LINK_IFELSE( |
2803 | 2822 | [AC_LANG_PROGRAM([[ |
2804 | 2823 | #include <string.h> |
| 2824 | #include <stdlib.h> |
2805 | 2825 | #include <openssl/evp.h> |
2806 | 2826 | ]], [[ |
2807 | 2827 | exit(EVP_aes_128_gcm() == NULL || |
… |
… |
|
2829 | 2849 | AC_LINK_IFELSE( |
2830 | 2850 | [AC_LANG_PROGRAM([[ |
2831 | 2851 | #include <string.h> |
| 2852 | #include <stdlib.h> |
2832 | 2853 | #include <openssl/evp.h> |
2833 | 2854 | ]], [[ |
2834 | 2855 | if(EVP_DigestUpdate(NULL, NULL,0)) |
… |
… |
|
2927 | 2948 | #include <openssl/ecdh.h> |
2928 | 2949 | #include <openssl/ecdsa.h> |
2929 | 2950 | #include <openssl/evp.h> |
| 2951 | #include <stdlib.h> |
2930 | 2952 | #include <openssl/objects.h> |
2931 | 2953 | #include <openssl/opensslv.h> |
2932 | 2954 | ]],[[ |
… |
… |
|
3015 | 3037 | AC_RUN_IFELSE( |
3016 | 3038 | [AC_LANG_PROGRAM([[ |
3017 | 3039 | #include <string.h> |
| 3040 | #include <stdlib.h> |
3018 | 3041 | #include <openssl/rand.h> |
3019 | 3042 | ]], [[ |
3020 | 3043 | exit(RAND_status() == 1 ? 0 : 1); |
… |
… |
|
3445 | 3468 | AC_RUN_IFELSE( |
3446 | 3469 | [AC_LANG_PROGRAM([[ |
3447 | 3470 | #include <stdio.h> |
| 3471 | #include <stdlib.h> |
3448 | 3472 | /* Why is this so damn hard? */ |
3449 | 3473 | #ifdef __GNUC__ |
3450 | 3474 | # undef __GNUC__ |
… |
… |
|
3921 | 3945 | [AC_LANG_SOURCE([[ |
3922 | 3946 | #include <stdio.h> |
3923 | 3947 | #include <string.h> |
| 3948 | #include <stdlib.h> |
3924 | 3949 | #ifdef HAVE_SNPRINTF |
3925 | 3950 | main() |
3926 | 3951 | { |
… |
… |
|
4021 | 4046 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4022 | 4047 | #include <sys/types.h> |
4023 | 4048 | #include <sys/socket.h> |
| 4049 | #include <stdlib.h> |
4024 | 4050 | #include <sys/uio.h> |
4025 | 4051 | ]], [[ |
4026 | 4052 | #ifdef msg_accrights |
… |
… |
|
4082 | 4108 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
4083 | 4109 | #include <sys/types.h> |
4084 | 4110 | #include <sys/socket.h> |
| 4111 | #include <stdlib.h> |
4085 | 4112 | #include <sys/uio.h> |
4086 | 4113 | ]], [[ |
4087 | 4114 | #ifdef msg_control |
… |
… |
|
4501 | 4528 | [AC_LANG_PROGRAM([[ |
4502 | 4529 | #include <stdio.h> |
4503 | 4530 | #include <string.h> |
| 4531 | #include <stdlib.h> |
4504 | 4532 | #ifdef HAVE_PATHS_H |
4505 | 4533 | #include <paths.h> |
4506 | 4534 | #endif |
… |
… |
|
4744 | 4772 | [AC_LANG_PROGRAM([[ |
4745 | 4773 | /* find out what STDPATH is */ |
4746 | 4774 | #include <stdio.h> |
| 4775 | #include <stdlib.h> |
4747 | 4776 | #ifdef HAVE_PATHS_H |
4748 | 4777 | # include <paths.h> |
4749 | 4778 | #endif |