Bugzilla – Attachment #49623: This is the patch I use for building. for bug #116430
#endif
#ifdef __x86_64__
#include "asm/ioctl32.h"
#include "linux/ioctl32.h"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,2)
#include "linux/syscalls.h"
int ATI_API_CALL firegl_get_user_ptr(u32 *src, void **dst)
{
void *temp=NULL;
unsigned long temp;
int err = get_user(temp, src);
*dst = temp;
*dst = (void *) temp;
return err;
}