diff -Naur cddetect-2.1-1ORIG/cddetect.c cddetect-2.1-1/cddetect.c
--- cddetect-2.1-1ORIG/cddetect.c	2008-06-17 22:30:25.000000000 +0800
+++ cddetect-2.1-1/cddetect.c	2014-12-14 14:52:24.000000000 +0800
@@ -22,7 +22,7 @@
 #include <errno.h>
 #include <linux/cdrom.h>
 #include <linux/iso_fs.h>
-
+#include <limits.h>
 
 #define CDDEVICE "/dev/cdrom"
 
