Imported Upstream version 1.8.7
[debian/sudo] / compat / fnmatch.c
index 54a31421338e7976c01850512f4dde9f7b317353..7ea5dc5defecb4a91bf507d750436eb5db8e5eef 100644 (file)
@@ -71,6 +71,8 @@
 
 #include <config.h>
 
+#ifndef HAVE_FNMATCH
+
 #include <sys/types.h>
 
 #include <stdio.h>
@@ -472,3 +474,4 @@ firstsegment:
     /* pattern didn't match to the end of string */
     return FNM_NOMATCH;
 }
+#endif /* HAVE_FNMATCH */