Signed-off-by: Alan Coopersmith <[email protected]>
---
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
--
1.7.3.2
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel