Overview
Comment: | Check whether getaddrinfo is thread-safe and use locks if not. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c8398d985d3f9788161425a6ecca1f79 |
User & Date: | js on 2009-12-09 19:09:41 |
Other Links: | manifest | tags |
Context
2009-12-11
| ||
12:52 | Make it possible to build ObjFW without support for threads. check-in: 6caac0826e user: js tags: trunk | |
2009-12-09
| ||
19:09 | Check whether getaddrinfo is thread-safe and use locks if not. check-in: c8398d985d user: js tags: trunk | |
18:43 | Indent defines and imports where it is useful. check-in: 66f6ca045c user: js tags: trunk | |
Changes
Modified configure.ac from [05facc1731] to [e854e5bdb3].
︙ | |||
103 104 105 106 107 108 109 | 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | - | { return (snprintf(NULL, 0, "asd") == 3 ? 0 : 1); }], ac_cv_snprintf_useful_ret="yes", ac_cv_snprintf_useful_ret="no", ac_cv_snprintf_useful_ret="no")]) AC_MSG_RESULT($ac_cv_snprintf_useful_ret)]) |
︙ | |||
139 140 141 142 143 144 145 | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | #include <netdb.h> #else #define _WIN32_WINNT 0x0501 #include <ws2tcpip.h> #endif], [ struct addrinfo ai; getaddrinfo(NULL, NULL, NULL, NULL); |
︙ |
Modified m4/buildsys.m4 from [0c1eb88949] to [8507639fdf].
︙ | |||
28 29 30 31 32 33 34 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | - - + + - - - + + + - + - + - + | [BUILDSYS_STATIC_LIB_ONLY], [BUILDSYS_SHARED_LIB]) ]) AC_DEFUN([BUILDSYS_PROG_IMPLIB], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_MSG_CHECKING(whether we need an implib) |
︙ |
Modified src/OFTCPSocket.m from [4bb7848f0c] to [f13b976cd7].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | - + - + + + + + + + + + - + + + + + + + + + | #import "OFTCPSocket.h" #import "OFExceptions.h" #ifndef INVALID_SOCKET #define INVALID_SOCKET -1 #endif |
︙ |