Disabled code based on autoconf tests
diff --git a/mktemp.c b/mktemp.c
index 69dc4dc..de11a6b 100644
--- a/mktemp.c
+++ b/mktemp.c
@@ -47,8 +47,11 @@
 #include <ctype.h>
 #include <unistd.h>
 
+#include "config.h"
 #include "helper.h"
 
+#ifndef HAVE_MKDTEMP
+
 static int _gettemp __P((char *, int *, int, int));
 
 int
@@ -181,3 +184,5 @@
 	}
 	/*NOTREACHED*/
 }
+
+#endif /* !HAVE_MKDTEMP */