VirtualBox

Changeset 2057 in kBuild for trunk/src


Ignore:
Timestamp:
Nov 4, 2008 7:23:30 PM (17 years ago)
Author:
bird
Message:

solaris has mallinfo, but only in an alternative lib that is slower. duh.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/Makefile.kmk

    r2056 r2057  
    210210        remote-stub.c
    211211
     212#kmk_LIBS.solaris = malloc
     213#kmk_DEFS.solaris += HAVE_MALLINFO
     214
    212215#
    213216# kmkbuiltin commands
  • trunk/src/kmk/misc.c

    r2050 r2057  
    2727#  include <malloc/malloc.h>
    2828# endif
    29 # if defined(__GLIBC__)
     29# if defined(__GLIBC__) || defined(HAVE_MALLINFO)
    3030#  include <malloc.h>
    3131# endif
     
    14141414
    14151415   /* XVID2/XPG mallinfo (displayed per GLIBC documentation).  */
    1416 # if defined(__GLIBC__)
     1416# if defined(__GLIBC__) || defined(HAVE_MALLINFO)
    14171417  struct mallinfo m;
    14181418
     
    14311431  printf (_("#           top-most releasable space=%d\n"),
    14321432          m.keepcost);
    1433 # endif /* __GLIBC__ */
     1433# endif /* __GLIBC__ || HAVE_MALLINFO */
    14341434
    14351435# ifdef CONFIG_WITH_MAKE_STATS
Note: See TracChangeset for help on using the changeset viewer.

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