fix up drm.h for C++ include as this can be included in user programs

main
Dave Airlie 2005-06-11 10:08:39 +00:00
parent f4aa8ab715
commit 3585bdf7d8
1 changed files with 4 additions and 0 deletions

View File

@ -439,7 +439,11 @@ typedef struct drm_buf_pub {
*/
typedef struct drm_buf_map {
int count; /**< Length of the buffer list */
#if defined(__cplusplus)
void __user *c_virtual;
#else
void __user *virtual; /**< Mmap'd area in user-virtual */
#endif
drm_buf_pub_t __user *list; /**< Buffer information */
} drm_buf_map_t;