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.

wyoung 2018-09-22 16:55 libbind-ns-alternative
Commit 5358fe9563bf2aa6815b46c8aa597b61274c615657b52e2cb0cb276be061f8a0
1 file changed +2 -2
+2 -2
--- src/smtp.c
+++ src/smtp.c
@@ -19,12 +19,12 @@
1919
** to RFC 5321.
2020
*/
2121
#include "config.h"
2222
#include "smtp.h"
2323
#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)
2626
# include <sys/types.h>
2727
# include <netinet/in.h>
2828
# if defined(HAVE_BIND_RESOLV_H)
2929
# include <bind/resolv.h>
3030
# include <bind/arpa/nameser_compat.h>
3131
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button