* config/srclist.txt: Add glibc bug 1240.
[gnulib.git] / lib / check-version.c
index b54f2e5..2f17a6c 100644 (file)
@@ -28,7 +28,7 @@
 #include <strverscmp.h>
 
 /* Get specification. */
-#include "check_version.h"
+#include "check-version.h"
 
 /* Check that the the version of the library (i.e., the CPP symbol
  * VERSION) is at minimum the requested one in REQ_VERSION (typically
@@ -40,7 +40,7 @@
 const char *
 check_version (const char *req_version)
 {
-  if (!req_version || strverscmp (req_version, VERSION) < 0)
+  if (!req_version || strverscmp (req_version, VERSION) <= 0)
     return VERSION;
 
   return NULL;