Fossil SCM
The -DFOSSIL_OMIT_DNS compile-time option avoids trying to link -lresolv.
Commit
023ce4edde8ceb2dfb4cd37400b5619b784c30a6dd846c417658f10ebc4ab531
Parent
3a903bfd492ce23…
1 file changed
+1
-1
+1
-1
| --- src/smtp.c | ||
| +++ src/smtp.c | ||
| @@ -19,11 +19,11 @@ | ||
| 19 | 19 | ** to RFC 5321. |
| 20 | 20 | */ |
| 21 | 21 | #include "config.h" |
| 22 | 22 | #include "smtp.h" |
| 23 | 23 | #include <assert.h> |
| 24 | -#if defined(__linux__) | |
| 24 | +#if defined(__linux__) && !defined(FOSSIL_OMIT_DNS) | |
| 25 | 25 | # include <sys/types.h> |
| 26 | 26 | # include <netinet/in.h> |
| 27 | 27 | # include <arpa/nameser.h> |
| 28 | 28 | # include <resolv.h> |
| 29 | 29 | # define FOSSIL_UNIX_STYLE_DNS 1 |
| 30 | 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__) |
| 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 |