1 /* This is never meant to be executed; we just want to check for the */ 2 /* presence of mkdtemp and mkstemp by whether this links without error. */ 3 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <unistd.h> 7 8 int 9 #ifdef KR_headers main(argc,argv)10main(argc, argv) int argc; char **argv; 11 #else 12 main(int argc, char **argv) 13 #endif 14 { 15 char buf[16]; 16 if (argc < 0) { 17 #ifndef NO_MKDTEMP 18 mkdtemp(buf); 19 #else 20 mkstemp(buf); 21 #endif 22 } 23 return 0; 24 } 25