<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Tue, 2011-01-04 at 20:31 -0800, Alan Coopersmith wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Signed-off-by: Alan Coopersmith <<A HREF="mailto:alan.coopersmith@oracle.com">alan.coopersmith@oracle.com</A>>
---
configure.ac | 3 +--
xrdb.c | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index f5e2389..deeb9a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,8 +37,7 @@ m4_ifndef([XORG_MACROS_VERSION],
XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
-AC_CHECK_FUNC([mkstemp],
- AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the 'mkstemp' function.]))
+AC_CHECK_FUNCS([mkstemp])
# Find MAXHOSTNAMELEN definition
# Common hidey holes:
diff --git a/xrdb.c b/xrdb.c
index 21005c0..33547f8 100644
--- a/xrdb.c
+++ b/xrdb.c
@@ -943,7 +943,7 @@ main(int argc, char *argv[])
        strcpy(tmpname, "/tmp/xrdb_XXXXXX");
#endif
#endif
-#ifndef HAS_MKSTEMP
+#ifndef HAVE_MKSTEMP
        (void) mktemp(tmpname);
        filename = tmpname;
        fp = fopen(filename, "w");
@@ -1115,7 +1115,7 @@ Process(int scrno, Bool doScreen, Bool execute)
        input = fopen(editFile, "r");
        snprintf(template, sizeof(template), "%sXXXXXX", editFile);
-#ifndef HAS_MKSTEMP
+#ifndef HAVE_MKSTEMP
        (void) mktemp(template);
        output = fopen(template, "w");
#else
</PRE>
</BLOCKQUOTE>
<BR>
Reviewed-by: <TT><FONT COLOR="#1a1a1a">Gaetan Nadon <<A HREF="mailto:memsize@videotron.ca">memsize@videotron.ca</A>></FONT></TT>
</BODY>
</HTML>