diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-05-02 11:22:49 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-05-02 11:22:49 (GMT) |
commit | 181a1c1601561c47a31b819ec400ea1fbb69cb91 (patch) | |
tree | 074b0b68651c7084aaad5e45e952382478923773 | |
parent | bfc9971c808b35d382cdea6c4529c636d33a1081 (diff) | |
parent | 869cc2535e16e7d8bbac4bafb2eebbea217ccd82 (diff) | |
download | tcl-181a1c1601561c47a31b819ec400ea1fbb69cb91.zip tcl-181a1c1601561c47a31b819ec400ea1fbb69cb91.tar.gz tcl-181a1c1601561c47a31b819ec400ea1fbb69cb91.tar.bz2 |
Make sure to forward-declare "struct addrinfo". Some compilers don't like doing that in a parameter-list
-rw-r--r-- | generic/tclInt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 077708e..8a0970d 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -3336,6 +3336,7 @@ MODULE_SCOPE void TclInitSockets(void); #else #define TclInitSockets() /* do nothing */ #endif +struct addrinfo; /* forward declaration, needed for TclCreateSocketAddress */ MODULE_SCOPE int TclCreateSocketAddress(Tcl_Interp *interp, struct addrinfo **addrlist, const char *host, int port, int willBind, |