From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.kundenserver.de ([217.72.192.75]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dNHHw-0004kU-2Q for ptxdist@pengutronix.de; Tue, 20 Jun 2017 13:25:40 +0200 From: Alexander Dahl Date: Tue, 20 Jun 2017 13:25:15 +0200 Message-Id: <1497957915-19723-1-git-send-email-post@lespocky.de> Subject: [ptxdist] [PATCH] libpcap: fix build without INET6 List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Alexander Dahl V2l0aCBkZWFjdGl2YXRlZCBJUHY2IGxpYnBjYXAgZmFpbHMgdG8gYnVpbGQuIFRoZXJlIHdhcyBh IHB1bGwgcmVxdWVzdAp1cHN0cmVhbSB0byBmaXggdGhpcywgYW5kIHVwc3RyZWFtIGRlY2lkZWQg dG8gZml4IGl0LCBidXQgZGlmZmVyZW50bHk6CgpodHRwczovL2dpdGh1Yi5jb20vdGhlLXRjcGR1 bXAtZ3JvdXAvbGlicGNhcC9wdWxsLzU0MQoKVGhpcyBpbXBvcnRzIGp1c3QgdGhlIG9uZSB1cHN0 cmVhbSBjaGFuZ2VzZXQgdG8gZml4IHRoZSBpc3N1ZSwgYW5kCnJlb3JnYW5pemVzIHRoZSBwYXRj aCBzZXJpZXMgdG8gcmVmbGVjdCB0aGUgZGlmZmVyZW50IHR5cGVzIG9mIHBhdGNoZXMuCgpTaWdu ZWQtb2ZmLWJ5OiBBbGV4YW5kZXIgRGFobCA8cG9zdEBsZXNwb2NreS5kZT4KLS0tCiAuLi4wMS1G aXgtY29tcGlsYXRpb24taWYtSU5FVDYtaXNuLXQ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