diff options
-rw-r--r-- | bmtoa.c | 4 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 3 insertions, 4 deletions
@@ -44,7 +44,7 @@ from The Open Group. #include <stdlib.h> #include <unistd.h> -#ifndef HAS_MKSTEMP +#ifndef HAVE_MKSTEMP extern char *mktemp(); #endif @@ -78,7 +78,7 @@ copy_stdin (void) FILE *fp; int nread, nwritten; -#ifndef HAS_MKSTEMP +#ifndef HAVE_MKSTEMP if (mktemp (tmpfilename) == NULL) { fprintf (stderr, "%s: unable to genererate temporary file name for stdin.\n", diff --git a/configure.ac b/configure.ac index b05d070..9c977a6 100644 --- a/configure.ac +++ b/configure.ac @@ -40,8 +40,7 @@ XORG_DEFAULT_OPTIONS AM_PROG_CC_C_O -AC_CHECK_FUNC([mkstemp], - AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the "mkstemp" function.])) +AC_CHECK_FUNCS([mkstemp]) # Obtain compiler/linker options from depedencies PKG_CHECK_MODULES(BMTOA, x11 xmu) |