VirtualBox

Changeset 23631 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Oct 8, 2009 8:16:01 PM (15 years ago)
Author:
vboxsync
Message:

string.h: Unconditionally define memmove on FreeBSD. FreeBSD_version is not defined during test builds

File:
1 edited

Legend:

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

    r23627 r23631  
    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
    4441  /*
    4542   * No memmove on versions < 7.2
    4643   * Defining a macro using bcopy here
    4744   */
    48 #  define memmove(dst, src, size) bcopy(src, dst, size)
    49 # endif
     45# define memmove(dst, src, size) bcopy(src, dst, size)
    5046#elif defined(RT_OS_SOLARIS) && defined(_KERNEL)
    5147  /*
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