Fossil SCM
Removed the "Linux" platform test from the DNS MX stuff in src/smtp.c. You should always test for features, not platforms, and we've now got the feature tests we need to replace this too-broad platform test.
Commit
5358fe9563bf2aa6815b46c8aa597b61274c615657b52e2cb0cb276be061f8a0
Parent
d0fb5ac7cae085d…
1 file changed
+2
-2
+2
-2
| --- src/smtp.c | ||
| +++ src/smtp.c | ||
| @@ -19,12 +19,12 @@ | ||
| 19 | 19 | ** to RFC 5321. |
| 20 | 20 | */ |
| 21 | 21 | #include "config.h" |
| 22 | 22 | #include "smtp.h" |
| 23 | 23 | #include <assert.h> |
| 24 | -#if HAVE_DN_EXPAND || HAVE___NS_NAME_UNCOMPRESS || HAVE_NS_NAME_UNCOMPRES || \ | |
| 25 | - (defined(__linux__) && !defined(FOSSIL_OMIT_DNS)) | |
| 24 | +#if (HAVE_DN_EXPAND || HAVE___NS_NAME_UNCOMPRESS || HAVE_NS_NAME_UNCOMPRES) && \ | |
| 25 | + !defined(FOSSIL_OMIT_DNS) | |
| 26 | 26 | # include <sys/types.h> |
| 27 | 27 | # include <netinet/in.h> |
| 28 | 28 | # if defined(HAVE_BIND_RESOLV_H) |
| 29 | 29 | # include <bind/resolv.h> |
| 30 | 30 | # include <bind/arpa/nameser_compat.h> |
| 31 | 31 |
| --- src/smtp.c | |
| +++ src/smtp.c | |
| @@ -19,12 +19,12 @@ | |
| 19 | ** to RFC 5321. |
| 20 | */ |
| 21 | #include "config.h" |
| 22 | #include "smtp.h" |
| 23 | #include <assert.h> |
| 24 | #if HAVE_DN_EXPAND || HAVE___NS_NAME_UNCOMPRESS || HAVE_NS_NAME_UNCOMPRES || \ |
| 25 | (defined(__linux__) && !defined(FOSSIL_OMIT_DNS)) |
| 26 | # include <sys/types.h> |
| 27 | # include <netinet/in.h> |
| 28 | # if defined(HAVE_BIND_RESOLV_H) |
| 29 | # include <bind/resolv.h> |
| 30 | # include <bind/arpa/nameser_compat.h> |
| 31 |
| --- src/smtp.c | |
| +++ src/smtp.c | |
| @@ -19,12 +19,12 @@ | |
| 19 | ** to RFC 5321. |
| 20 | */ |
| 21 | #include "config.h" |
| 22 | #include "smtp.h" |
| 23 | #include <assert.h> |
| 24 | #if (HAVE_DN_EXPAND || HAVE___NS_NAME_UNCOMPRESS || HAVE_NS_NAME_UNCOMPRES) && \ |
| 25 | !defined(FOSSIL_OMIT_DNS) |
| 26 | # include <sys/types.h> |
| 27 | # include <netinet/in.h> |
| 28 | # if defined(HAVE_BIND_RESOLV_H) |
| 29 | # include <bind/resolv.h> |
| 30 | # include <bind/arpa/nameser_compat.h> |
| 31 |