diff --git a/libvo/aspecttest.c b/libvo/aspecttest.c
index 5fe6416fce..fcd912bb28 100644
--- a/libvo/aspecttest.c
+++ b/libvo/aspecttest.c
@@ -18,6 +18,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 
@@ -27,8 +28,11 @@
 #define DEF_ZOOM 1
 
 extern float monitor_aspect;
+int vo_dheight;
+int vo_dwidth;
 int vo_fs;
 float vo_panscan;
+int64_t WinID = -1;
 
 int main(int argc, char *argv[]) {
   int w,h,z=DEF_ZOOM;