--- src/lib/IV-X11/xdrag.c.org	Thu Jun 10 01:10:59 1993
+++ src/lib/IV-X11/xdrag.c	Sun Jan 23 18:52:17 2000
@@ -229,11 +229,12 @@
     XWindow *children;
     unsigned int kids;
     Status status;
+    int i;
     status = XQueryTree(display, root, &root, &parent, &children, &kids);
     if (status == 0) {
 	return None;
     }
-    for (int i = kids - 1; i >= 0 && children[i] != under ; --i);
+    for (i = kids - 1; i >= 0 && children[i] != under ; --i);
     for (--i; i >= 0; --i) {
 	XWindowAttributes attributes;
 	XGetWindowAttributes(display, children[i], &attributes);
