diff --git a/src/conio/Common.gmake b/src/conio/Common.gmake
index 1cabce553aec62b67514a8556623ba09d0528fcb..b813b89b8353ab8cc24226587451e74043f84270 100644
--- a/src/conio/Common.gmake
+++ b/src/conio/Common.gmake
@@ -46,7 +46,7 @@ ifdef WITH_SDL
  endif
 endif
 
-X_PATH ?=      $(shell if [ -f /usr/X11R6/include/X11/Xlib.h ]; then echo /usr/X11R6 ; elif [ -f /usr/X11/include/X11/Xlib.h ] ; then echo /usr/X11 ; elif [ -f /usr/X/include/X11/Xlib.h ] ; then echo /usr/X ; elif [ -f /usr/include/X11/Xlib.h ] ; then echo /usr ; else echo 0 ; fi)
+X_PATH ?=      $(shell if [ -f /usr/X11R6/include/X11/Xlib.h ]; then echo /usr/X11R6 ; elif [ -f /usr/X11R7/include/X11/Xlib.h ] ; then echo /usr/X11R7 ; elif [ -f /usr/X11/include/X11/Xlib.h ] ; then echo /usr/X11 ; elif [ -f /usr/X/include/X11/Xlib.h ] ; then echo /usr/X ; elif [ -f /usr/include/X11/Xlib.h ] ; then echo /usr ; else echo 0 ; fi)
 
 ifeq ($(os),sunos)
  X_PATH	?=	/usr/X