--- nvidia-settings-1.0/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c	2010-10-28 04:23:19.000000000 +0200
+++ nvidia-settings-1.0-mod/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c	2011-01-04 11:43:54.888000046 +0100
@@ -28,6 +28,7 @@
 #include "msg.h"
 
 #include <X11/extensions/xf86vmode.h>
+#include <X11/extensions/xf86vmproto.h>
 
 #include <stdlib.h>
 #include <math.h>