--- fglrx-install/common/lib/modules/fglrx/build_mod/firegl_public.c 2006-07-27 23:22:36.000000000 -0400 +++ fglrx-install-8.32.5/common/lib/modules/fglrx/build_mod/firegl_public.c 2006-12-12 23:12:38.000000000 -0500 @@ -151,9 +151,13 @@ #endif #endif +// For 2.6.18 or higher, the UTS_RELEASE is defined in the linux/utsrelease.h. +#ifndef UTS_RELEASE +#include +#endif + #include #include "firegl_public.h" - // ============================================================ #ifndef TRUE #define TRUE 1 @@ -165,6 +169,11 @@ #define NULL (void*)0 #endif +// VM_SHM is deleted in 2.6.18 or higher kernels. +#ifndef VM_SHM +#define VM_SHM 0 +#endif + #ifdef FGL_USE_SCT // get direct function pointers from sys_call_table for calling #else /* FGL_USE_SCT */