Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jul 2018 19:44:26 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335849 - head/usr.bin/find
Message-ID:  <201807011944.w61JiQA0076802@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Jul  1 19:44:26 2018
New Revision: 335849
URL: https://svnweb.freebsd.org/changeset/base/335849

Log:
  find(1): remove portability ifdefs
  
  This code isn't designed to be particularly portable outside of FreeBSD.
  To be more specific it doesn't make much sense to support compiling
  find(1) on VMS.

Modified:
  head/usr.bin/find/getdate.y

Modified: head/usr.bin/find/getdate.y
==============================================================================
--- head/usr.bin/find/getdate.y	Sun Jul  1 18:58:53 2018	(r335848)
+++ head/usr.bin/find/getdate.y	Sun Jul  1 19:44:26 2018	(r335849)
@@ -23,22 +23,11 @@ __FBSDID("$FreeBSD$");
    tricks are need, but defaults to using the gettimeofday system call.
    Include <sys/time.h> if that will be used.  */
 
-#if	defined(vms)
-# include <types.h>
-#else /* defined(vms) */
 # include <sys/types.h>
 # include <sys/time.h>
-#endif	/* !defined(vms) */
 
 #if defined (__STDC__) || defined (USG)
 #include <string.h>
-#endif
-
-/* Some old versions of bison generate parsers that use bcopy.
-   That loses on systems that don't provide the function, so we have
-   to redefine it here.  */
-#if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy)
-#define bcopy(from, to, len) memcpy ((to), (from), (len))
 #endif
 
 #if defined (__STDC__)



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