VirtualBox

Changeset 10880 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 25, 2008 8:30:15 AM (17 years ago)
Author:
vboxsync
Message:

Fix for missing _SC_PAGESIZE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/linux/PerformanceLinux.cpp

    r10879 r10880  
    2828#include "Performance.h"
    2929
     30#ifndef PAGESIZE
     31#define PAGESIZE _SC_PAGESIZE
     32#endif
     33
    3034namespace pm {
    3135
     
    4145private:
    4246    int getRawProcessStats(RTPROCESS process, uint64_t *cpuUser, uint64_t *cpuKernel, unsigned long *memPagesUsed);
    43     long getPageSize() { return sysconf(_SC_PAGESIZE); };
     47    long getPageSize() { return sysconf(PAGESIZE); };
    4448};
    4549
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