[epiphany] build: Get rid of custom error message for missing mkdtemp



commit f80164e6b1bc60979404568f9c0e6bf98bd2d86b
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Nov 7 17:08:55 2015 -0600

    build: Get rid of custom error message for missing mkdtemp

 configure.ac            |    2 --
 lib/ephy-file-helpers.c |    4 ----
 2 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 48fd895..cbb487b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,8 +129,6 @@ AC_SUBST([WEB_EXTENSION_LIBS])
 # Portability checks
 # ******************
 
-AC_CHECK_FUNCS([mkdtemp])
-
 # for backtrace()
 AC_CHECK_HEADERS([execinfo.h])
 AC_SEARCH_LIBS([backtrace], [c execinfo])
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 3c28062..027efd1 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -85,11 +85,7 @@ ephy_file_tmp_dir (void)
                                            "-XXXXXX", NULL);
                full_name = g_build_filename (g_get_tmp_dir (), partial_name,
                                              NULL);
-#ifdef HAVE_MKDTEMP
                tmp_dir = mkdtemp (full_name);
-#else
-#error no mkdtemp implementation
-#endif
                g_free (partial_name);
 
                if (tmp_dir == NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]