Fossil

Check-in [023ce4ed]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The -DFOSSIL_OMIT_DNS compile-time option avoids trying to link -lresolv.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:023ce4edde8ceb2dfb4cd37400b5619b784c30a6dd846c417658f10ebc4ab531
User & Date: drh 2018-07-14 20:11:37
Context
2018-07-14
22:16
More cases of incorrect permission checks. check-in: a2e1f9fb user: drh tags: trunk
20:11
The -DFOSSIL_OMIT_DNS compile-time option avoids trying to link -lresolv. check-in: 023ce4ed user: drh tags: trunk
20:07
Fix display text typo on the skin editor page for non-administrators. check-in: 3a903bfd user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/smtp.c.

    17     17   **
    18     18   ** Implementation of SMTP (Simple Mail Transport Protocol) according
    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   #endif
    31     31   #if defined(_WIN32) && !defined(__MINGW32__) && !defined(__MINGW64__)