VirtualBox

Changeset 6416 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jan 21, 2008 4:07:10 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27380
Message:

Applied [27227] to the trunk: make it compile with older 2.6 kernels, missing initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r5999 r6416  
    3838#include <iprt/process.h>
    3939#include "internal/memobj.h"
     40
     41/* early 2.6 kernels */
     42#ifndef PAGE_SHARED_EXEC
     43# define PAGE_SHARED_EXEC PAGE_SHARED
     44#endif
     45#ifndef PAGE_READONLY_EXEC
     46# define PAGE_READONLY_EXEC PAGE_READONLY
     47#endif
    4048
    4149
     
    693701    struct vm_area_struct **papVMAs;
    694702    PRTR0MEMOBJLNX pMemLnx;
    695     int rc;
     703    int rc = VERR_NO_MEMORY;
    696704
    697705    /*
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