Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2019 13:07:28 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r514390 - head/ftp/omi/files
Message-ID:  <201910131307.x9DD7S2J063694@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <osreldate.h>
-+#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 <osreldate.h>
-+#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 <num>+1 bytes, even if less space would
   *   be sufficient to store <src>.
   */
-+#endif
 +#endif
  
  char *justify (char *str);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910131307.x9DD7S2J063694>