GNOME Bugzilla – Bug 117899
Patch to make it compile on Solaris
Last modified: 2004-12-22 21:47:04 UTC
Below is a patch to make nautilus-cd-burner compile on Solaris. Solaris lacks both mkdtemp() and statfs(). Instead statvfs() is used and a stolen mkdtemp() from gettext which includes it for the same reason. The conditional compilation of mkdtemp.c in Makefile.am should be possible to do in a nicer way. I know it is with more recsent automake/autoconf. I'll attach the files for mkdtemp() seperately.
Created attachment 18456 [details] [review] Patch to nautilus-cd-burner to compile on Solaris
Created attachment 18457 [details] [review] mkdtemp.c
Created attachment 18458 [details] [review] mkdtemp.h
*** Bug 105299 has been marked as a duplicate of this bug. ***
I had to make changes to Makefile.am though, it was kinda broken (ie. mkdtemp.h wouldn't have been distributed, and it made the code in there more complicated than it should have been) 2003-07-23 Bastien Nocera <hadess@hadess.net> * Makefile.am: * configure.in: * make-iso.c: (make_iso): * mapping-daemon.c: (main): * mapping-method.c: (vfs_module_init): * mkdtemp.c: * mkdtemp.h: patch from Fredrik Jönsson <fjo@nada.kth.se> to provide statfs replacement on Solaris, and mkdtemp.[ch] on non-OpenBSD, or non-glibc systems, use the same code in mapping-method.c as in mapping-daemon.c to create the communication socket (Closes: #117948, #117899)