Fossil SCM
Provide an implementation for popen() and pclose() on Windows to fix the build.
Commit
565b5ff0c29e6b3198f167f171279c1ccc6959ceb47d7ad2c78aa3cb4b6d6c6d
Parent
8d230be45cd1237…
1 file changed
+7
+7
| --- src/email.c | ||
| +++ src/email.c | ||
| @@ -172,10 +172,17 @@ | ||
| 172 | 172 | k = translateBase64(blob_buffer(pMsg)+i, i+54<n ? 54 : n-i, zBuf); |
| 173 | 173 | blob_append(pOut, zBuf, k); |
| 174 | 174 | blob_append(pOut, "\r\n", 2); |
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | + | |
| 178 | +#if defined(_WIN32) || defined(WIN32) | |
| 179 | +# undef popen | |
| 180 | +# define popen _popen | |
| 181 | +# undef pclose | |
| 182 | +# define pclose _pclose | |
| 183 | +#endif | |
| 177 | 184 | |
| 178 | 185 | /* |
| 179 | 186 | ** Send an email message using whatever sending mechanism is configured |
| 180 | 187 | ** by these settings: |
| 181 | 188 | ** |
| 182 | 189 |
| --- src/email.c | |
| +++ src/email.c | |
| @@ -172,10 +172,17 @@ | |
| 172 | k = translateBase64(blob_buffer(pMsg)+i, i+54<n ? 54 : n-i, zBuf); |
| 173 | blob_append(pOut, zBuf, k); |
| 174 | blob_append(pOut, "\r\n", 2); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | /* |
| 179 | ** Send an email message using whatever sending mechanism is configured |
| 180 | ** by these settings: |
| 181 | ** |
| 182 |
| --- src/email.c | |
| +++ src/email.c | |
| @@ -172,10 +172,17 @@ | |
| 172 | k = translateBase64(blob_buffer(pMsg)+i, i+54<n ? 54 : n-i, zBuf); |
| 173 | blob_append(pOut, zBuf, k); |
| 174 | blob_append(pOut, "\r\n", 2); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | #if defined(_WIN32) || defined(WIN32) |
| 179 | # undef popen |
| 180 | # define popen _popen |
| 181 | # undef pclose |
| 182 | # define pclose _pclose |
| 183 | #endif |
| 184 | |
| 185 | /* |
| 186 | ** Send an email message using whatever sending mechanism is configured |
| 187 | ** by these settings: |
| 188 | ** |
| 189 |