From: Mike Kelly Date: Wed, 30 May 2012 07:01:59 +0000 (+2000) Subject: [PATCH v2 4/9] test/smtp-dummy.c: fix compilation on FreeBSD X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=26e892456476d6d4086d1c768d3b38af49314a9b;p=notmuch-archives.git [PATCH v2 4/9] test/smtp-dummy.c: fix compilation on FreeBSD --- diff --git a/5e/57c52f7b3f19320049d373045bd0e695012d0e b/5e/57c52f7b3f19320049d373045bd0e695012d0e new file mode 100644 index 000000000..b2c8fa204 --- /dev/null +++ b/5e/57c52f7b3f19320049d373045bd0e695012d0e @@ -0,0 +1,91 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 6B254431FC7 + for ; Wed, 30 May 2012 00:02:56 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id GulN2mFRr9e0 for ; + Wed, 30 May 2012 00:02:55 -0700 (PDT) +Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com + [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 68A62431FBC + for ; Wed, 30 May 2012 00:02:55 -0700 (PDT) +Received: by mail-vb0-f53.google.com with SMTP id fc26so4786690vbb.26 + for ; Wed, 30 May 2012 00:02:55 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references + :x-gm-message-state; + bh=+ycpBz6QjL5DdnXvhw+UXBbcgnYE2L0OyyPq78ndQ9s=; + b=nHTN7TkpMu8tf8aNrmk1rd+lCXy2WLqyxWufBUCiJfgBeicaf9ijxIfUzv4YpnO3BI + 9tyaqsashendE0JZfp993Bx+iAdb6/rNPKqiFL0SInmguPs98kWX20meKu94A1EGEwwd + vTv1nrLWZ1+hy3Qr732+mwmXHAhfE/kOWYeE9N/8rd+Ka1Riwd7eIY8YsZQqJpDdBNKq + kkG96XhQUOk38roMzy38oZJE4EYqA9myHYTdAtTrXMoF2uWlQrGfMagrHnBXJJbflp9H + rV6Y3GMpM9kM7f9nHYiVcviDityVxtbug24LFlXGpbWfbmPdgBtzYCr87ICTxR5gk3dX + 3tUg== +Received: by 10.220.224.68 with SMTP id in4mr15914476vcb.24.1338361374768; + Wed, 30 May 2012 00:02:54 -0700 (PDT) +Received: from nas.home.pioto.org (pool-71-182-155-97.pitbpa.fios.verizon.net. + [71.182.155.97]) + by mx.google.com with ESMTPS id s10sm24613628vdg.10.2012.05.30.00.02.53 + (version=TLSv1/SSLv3 cipher=OTHER); + Wed, 30 May 2012 00:02:54 -0700 (PDT) +Received: by nas.home.pioto.org (Postfix, from userid 1001) + id A70C3287D6; Wed, 30 May 2012 03:02:51 -0400 (EDT) +From: Mike Kelly +To: notmuch@notmuchmail.org +Subject: [PATCH v2 4/9] test/smtp-dummy.c: fix compilation on FreeBSD +Date: Wed, 30 May 2012 03:01:59 -0400 +Message-Id: <1338361324-57289-5-git-send-email-pioto@pioto.org> +X-Mailer: git-send-email 1.7.10.2 +In-Reply-To: <1338361324-57289-1-git-send-email-pioto@pioto.org> +References: <1338361324-57289-1-git-send-email-pioto@pioto.org> +X-Gm-Message-State: + ALoCoQnlkb9wPvdXdRkPbRET4CLuj5i0Wmmw1vT07/ZNRbw6RExQjcVhgEDBavdUngU8cWndOQ4f +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 30 May 2012 07:02:56 -0000 + +Use the more portable netint/in.h, instead of netint/ip.h, to include +htons(3), etc. +--- + test/smtp-dummy.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c +index 3801a5e..86d4316 100644 +--- a/test/smtp-dummy.c ++++ b/test/smtp-dummy.c +@@ -37,7 +37,9 @@ + #include + #include + #include +-#include ++#include ++#include ++#include + #include + #include + +-- +1.7.10.2 +