From owner-svn-ports-head@freebsd.org Sun Oct 13 13:07:28 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EE79EF8BB2; Sun, 13 Oct 2019 13:07:28 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46rhmw65dyz3PjW; Sun, 13 Oct 2019 13:07:28 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B088F1D491; Sun, 13 Oct 2019 13:07:28 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x9DD7Sek063695; Sun, 13 Oct 2019 13:07:28 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x9DD7S2J063694; Sun, 13 Oct 2019 13:07:28 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201910131307.x9DD7S2J063694@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 13 Oct 2019 13:07:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514390 - head/ftp/omi/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/ftp/omi/files X-SVN-Commit-Revision: 514390 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2019 13:07:29 -0000 Author: jbeich Date: Sun Oct 13 13:07:28 2019 New Revision: 514390 URL: https://svnweb.freebsd.org/changeset/ports/514390 Log: ftp/omi: drop FreeBSD < 7.2 support Modified: head/ftp/omi/files/patch-utils.c (contents, props changed) head/ftp/omi/files/patch-utils.h (contents, props changed) Modified: head/ftp/omi/files/patch-utils.c ============================================================================== --- head/ftp/omi/files/patch-utils.c Sun Oct 13 12:59:49 2019 (r514389) +++ head/ftp/omi/files/patch-utils.c Sun Oct 13 13:07:28 2019 (r514390) @@ -1,20 +1,17 @@ --- utils/utils.c.orig 2009-02-23 16:51:16.000000000 +0100 +++ utils/utils.c 2009-02-23 16:53:54.000000000 +0100 -@@ -31,6 +31,9 @@ +@@ -31,6 +31,7 @@ return (mem); } -+#if defined(__FreeBSD__) -+#include -+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100 ++#if !defined(__FreeBSD__) char *strndup (const char *src, int num) { char *dst; -@@ -40,6 +43,8 @@ +@@ -40,6 +43,7 @@ dst[num] = '\0'; return (strncpy(dst, src, num)); } -+#endif +#endif char *justify (char *str) Modified: head/ftp/omi/files/patch-utils.h ============================================================================== --- head/ftp/omi/files/patch-utils.h Sun Oct 13 12:59:49 2019 (r514389) +++ head/ftp/omi/files/patch-utils.h Sun Oct 13 13:07:28 2019 (r514390) @@ -1,20 +1,17 @@ --- utils/utils.h.orig 2009-02-23 16:51:20.000000000 +0100 +++ utils/utils.h 2009-02-23 16:54:21.000000000 +0100 -@@ -42,6 +42,9 @@ +@@ -42,6 +42,7 @@ * allocated. */ -+#if defined(__FreeBSD__) -+#include -+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100 ++#if !defined(__FreeBSD__) char *strndup (const char *src, int num); /* * Like strdup(), but limits the string length to at most -@@ -50,6 +53,8 @@ +@@ -50,6 +53,7 @@ * Always allocates +1 bytes, even if less space would * be sufficient to store . */ -+#endif +#endif char *justify (char *str);