Fossil SCM

The -DFOSSIL_OMIT_DNS compile-time option avoids trying to link -lresolv.

drh 2018-07-14 20:11 trunk
Commit 023ce4edde8ceb2dfb4cd37400b5619b784c30a6dd846c417658f10ebc4ab531
1 file changed +1 -1
+1 -1
--- src/smtp.c
+++ src/smtp.c
@@ -19,11 +19,11 @@
1919
** to RFC 5321.
2020
*/
2121
#include "config.h"
2222
#include "smtp.h"
2323
#include <assert.h>
24
-#if defined(__linux__)
24
+#if defined(__linux__) && !defined(FOSSIL_OMIT_DNS)
2525
# include <sys/types.h>
2626
# include <netinet/in.h>
2727
# include <arpa/nameser.h>
2828
# include <resolv.h>
2929
# define FOSSIL_UNIX_STYLE_DNS 1
3030
--- src/smtp.c
+++ src/smtp.c
@@ -19,11 +19,11 @@
19 ** to RFC 5321.
20 */
21 #include "config.h"
22 #include "smtp.h"
23 #include <assert.h>
24 #if defined(__linux__)
25 # include <sys/types.h>
26 # include <netinet/in.h>
27 # include <arpa/nameser.h>
28 # include <resolv.h>
29 # define FOSSIL_UNIX_STYLE_DNS 1
30
--- src/smtp.c
+++ src/smtp.c
@@ -19,11 +19,11 @@
19 ** to RFC 5321.
20 */
21 #include "config.h"
22 #include "smtp.h"
23 #include <assert.h>
24 #if defined(__linux__) && !defined(FOSSIL_OMIT_DNS)
25 # include <sys/types.h>
26 # include <netinet/in.h>
27 # include <arpa/nameser.h>
28 # include <resolv.h>
29 # define FOSSIL_UNIX_STYLE_DNS 1
30

Keyboard Shortcuts

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