| 490 |
490 |
| 491 cxPropertiesDestroy(&prop); |
491 cxPropertiesDestroy(&prop); |
| 492 } |
492 } |
| 493 |
493 |
| 494 static FILE *cx_opentmp(char *tpl) { |
494 static FILE *cx_opentmp(char *tpl) { |
| 495 #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200809L |
495 #ifdef WITH_MKSTEMP |
| 496 strcpy(tpl, "ucxtestXXXXXX"); |
496 strcpy(tpl, "ucxtestXXXXXX"); |
| 497 int fd = mkstemp(tpl); |
497 int fd = mkstemp(tpl); |
| 498 if (fd < 0) return NULL; |
498 if (fd < 0) return NULL; |
| 499 return fdopen(fd, "w"); |
499 return fdopen(fd, "w"); |
| 500 #else |
500 #else |