GNOME Bugzilla – Bug 343909
gtkprintoperation.c: mkdtemp is not common
Last modified: 2006-06-05 18:03:04 UTC
Please describe the problem: 'mkdtemp' is available since glibc 2.1.91. This function is not common. It is dependent on specific environment. Steps to reproduce: 1. compile with old C-runtime library Actual results: Following message is displayed. (Visual C++ 6.0) gtk\gtk\gtkprintoperation.c(481) : error C4013: 'mkdtemp' undefined; assuming extern returning int gtk\gtk\gtkprintoperation.c(481) : error C4047: '=' : 'gchar *' differs in levels of indirection from 'int' Expected results: If 'mkdtemp' is exist, macro 'HAVE_MKDTEMP' should be defined. For example, #ifdef HAVE_MKDTEMP tmp_dir = mkdtemp(dir_template); #else /* ??? */ #endif Or, add a new API 'g_mkdtemp' to gfileutils.[ch] and use it. Does this happen every time? Other information:
Created attachment 66771 [details] [review] use macro 'HAVE_MKDTEMP'
I think this should rather be fixed by adding g_mkdtemp to glib. I believe there is even a bug open about it.
(In reply to comment #2) > I think this should rather be fixed by adding g_mkdtemp to glib. I believe > there is even a bug open about it. Yep, looks like bug 118563. *** This bug has been marked as a duplicate of 118563 ***