#define _BSD_SOURCE #include int __mkostemps(char*, int, int); int mkostemp(char* template, int flags) { return __mkostemps(template, 0, flags); }