Bulid fix for nvidia support.
authorBrenden Matthews <brenden@diddyinc.com>
Wed, 6 Oct 2010 18:49:27 +0000 (11:49 -0700)
committerBrenden Matthews <brenden@diddyinc.com>
Wed, 6 Oct 2010 18:49:27 +0000 (11:49 -0700)
See http://bugs.gentoo.org/show_bug.cgi?id=339971 for details.

src/nvidia.c

index 8a6423e..5f378d8 100644 (file)
@@ -32,6 +32,7 @@
 #include "logging.h"
 #include "nvidia.h"
 #include "temphelper.h"
+#include "x11.h"
 #include <NVCtrl/NVCtrlLib.h>
 
 const int nvidia_query_to_attr[] = {NV_CTRL_GPU_CORE_TEMPERATURE,
@@ -145,5 +146,6 @@ void set_nvidia_display(const char *disp)
                if ((nvdisplay = XOpenDisplay(disp)) == NULL) {
                        CRIT_ERR(NULL, NULL, "can't open nvidia display: %s", XDisplayName(disp));
                }
-       }       
+       }
 }
+