diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-04 19:50:06 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-05 13:25:44 -0800 |
commit | b9aa83d7868e8813098bbc62adf82a79dc62e14e (patch) | |
tree | 3b36ba51c5892efff753eeb7c53b24d0feeb83e2 | |
parent | 6606863fc8467bcbc829cea63764be0d283c4b8a (diff) |
Convert HAS_MKSTEMP to autoconf standard HAVE_MKSTEMP
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | 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: @@ -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 |