VirtualBox

Changeset 23627 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Oct 8, 2009 6:50:17 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53311
Message:

Fix building on FreeBSD < 7.2. No memmove in R0 there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/string.h

    r23525 r23627  
    3939#elif defined(RT_OS_FREEBSD) && defined(_KERNEL)
    4040# include <sys/libkern.h>
     41# if __FreeBSD_version >= 702000
     42#  include <sys/systm.h> /* memmove */
     43# else
     44  /*
     45   * No memmove on versions < 7.2
     46   * Defining a macro using bcopy here
     47   */
     48#  define memmove(dst, src, size) bcopy(src, dst, size)
     49# endif
    4150#elif defined(RT_OS_SOLARIS) && defined(_KERNEL)
    4251  /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette