VirtualBox

Changeset 53340 in vbox for trunk


Ignore:
Timestamp:
Nov 17, 2014 3:00:23 PM (10 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: make it compile with Linux >= 3.18

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c

    r52017 r53340  
    5353
    5454#include <linux/module.h>
     55#include <linux/version.h>
    5556#include <drm/drmP.h>
    5657#include "vboxvideo_drm.h"
     
    8990        .release = drm_release,
    9091        .unlocked_ioctl = drm_ioctl,
     92# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
     93        /* This shouldn't be necessary even for old kernels as there is
     94         * nothing sensible to mmap. But we play safe and keep it for
     95         * legacy reasons. */
    9196        .mmap = drm_mmap,
     97# endif
    9298        .poll = drm_poll,
    9399};
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