bug-gnu-utils
[Top][All Lists]
Advanced

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

problems with mkstemp


From: jean-frederic clere
Subject: problems with mkstemp
Date: Fri, 06 Jun 2003 18:48:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425

Hi,

When compiling diffutils-2.8.1 on platform that does have mkstemp(). I get an unresolved mkstemp().

To work it around I have done the following:
+++
$ /usr/local/bin/diff -u src/sdiff.c.ori src/sdiff.c
--- src/sdiff.c.ori     Mon Mar 11 09:00:47 2002
+++ src/sdiff.c Fri Jun  6 18:43:13 2003
@@ -1210,7 +1210,11 @@
   sigemptyset (&blocked);
   sigaddset (&blocked, SIGINT);
   sigprocmask (SIG_BLOCK, &blocked, &procmask);
+#ifdef HAVE_MKSTEMP
   fd = mkstemp (buf);
+#else
+  fd = rpl_mkstemp (buf);
+#endif
   e = errno;
   if (0 <= fd)
     tmpname = buf;
+++

I have noted that the configure checks for mkstemp() (and correctly found that it is no present) but I have not found how the lib/mkstemp.c replacement routine gets called.

Cheers

Jean-frederic





reply via email to

[Prev in Thread] Current Thread [Next in Thread]