Commit 3ecc22a
Fix compilation on AIX 7.3
On AIX, compilation fails saying
src/http.c: In function 'op_http_conn_start_tls':
src/http.c:1944:5: warning: ISO C forbids nested functions [-Wpedantic]
1944 | int ip_len;
| ^~~
In file included from /usr/include/netinet/tcp.h:115,
from src/http.c:345:
src/http.c:1944:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1944 | int ip_len;
src/http.c:1944:24: error: expected expression before '.' token
src/http.c:1949:5: error: 'ip_ff' undeclared (first use in this function); did you mean 'ip_fv'?
1949 | ip_len=0;
because `/usr/include/netinet/ip-h` contains
#define ip_len ip_ff.ip_flen
The obvious solution os to rename the int variable to something else.1 parent 9d71834 commit 3ecc22a
1 file changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1759 | 1759 | | |
1760 | 1760 | | |
1761 | 1761 | | |
1762 | | - | |
| 1762 | + | |
| 1763 | + | |
1763 | 1764 | | |
1764 | 1765 | | |
1765 | 1766 | | |
| |||
1775 | 1776 | | |
1776 | 1777 | | |
1777 | 1778 | | |
1778 | | - | |
| 1779 | + | |
1779 | 1780 | | |
1780 | 1781 | | |
1781 | 1782 | | |
1782 | 1783 | | |
1783 | 1784 | | |
1784 | 1785 | | |
1785 | 1786 | | |
1786 | | - | |
| 1787 | + | |
1787 | 1788 | | |
1788 | 1789 | | |
1789 | 1790 | | |
| |||
1795 | 1796 | | |
1796 | 1797 | | |
1797 | 1798 | | |
1798 | | - | |
| 1799 | + | |
1799 | 1800 | | |
1800 | 1801 | | |
1801 | 1802 | | |
| |||
1879 | 1880 | | |
1880 | 1881 | | |
1881 | 1882 | | |
1882 | | - | |
1883 | | - | |
| 1883 | + | |
| 1884 | + | |
1884 | 1885 | | |
1885 | 1886 | | |
1886 | 1887 | | |
| |||
1941 | 1942 | | |
1942 | 1943 | | |
1943 | 1944 | | |
1944 | | - | |
| 1945 | + | |
1945 | 1946 | | |
1946 | 1947 | | |
1947 | 1948 | | |
1948 | 1949 | | |
1949 | | - | |
| 1950 | + | |
1950 | 1951 | | |
1951 | 1952 | | |
1952 | 1953 | | |
| |||
1956 | 1957 | | |
1957 | 1958 | | |
1958 | 1959 | | |
1959 | | - | |
| 1960 | + | |
1960 | 1961 | | |
1961 | 1962 | | |
1962 | 1963 | | |
1963 | 1964 | | |
1964 | 1965 | | |
1965 | 1966 | | |
1966 | 1967 | | |
1967 | | - | |
| 1968 | + | |
1968 | 1969 | | |
1969 | 1970 | | |
1970 | 1971 | | |
1971 | 1972 | | |
1972 | 1973 | | |
1973 | 1974 | | |
1974 | 1975 | | |
1975 | | - | |
| 1976 | + | |
1976 | 1977 | | |
1977 | 1978 | | |
1978 | 1979 | | |
| |||
0 commit comments