diff -Naurp cuda-orig/sdk/common/common.mk cuda/sdk/common/common.mk --- cuda-orig/sdk/common/common.mk 2009-03-22 10:59:39.000000000 +0100 +++ cuda/sdk/common/common.mk 2009-03-22 11:31:55.000000000 +0100 @@ -100,6 +99,8 @@ NVCCFLAGS := CXXFLAGS := $(CXXWARN_FLAGS) CFLAGS := $(CWARN_FLAGS) +NVCCFLAGS += -include=vararg-fix.h + # Common flags COMMONFLAGS += $(INCLUDES) -DUNIX diff -Naurp cuda-orig/sdk/common/inc/vararg-fix.h cuda/sdk/common/inc/vararg-fix.h --- cuda-orig/sdk/common/inc/vararg-fix.h 1970-01-01 01:00:00.000000000 +0100 +++ cuda/sdk/common/inc/vararg-fix.h 2009-03-22 11:17:11.000000000 +0100 @@ -0,0 +1,5 @@ +#ifndef __CUDA_VARARG_FIX +#define __CUDA_VARARG_FIX +// HACK: avoid compilation errors with GCC 4.3.3+ +int __builtin_va_arg_pack(); +#endif