diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-13 11:24:56 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-13 11:24:56 -0800 |
commit | 5a273c9fab6a4fe3ab0c729e78f3a86d3e5a69ed (patch) | |
tree | 6973b7b128ba66d077dd110accad6c0fcd809230 /auth.c | |
parent | 79a24ac258f66014af066df0707058b971c31988 (diff) |
Use standard autoconf defines for mkstemp & putenv instead of imake leftovers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -30,7 +30,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/ICE/ICEutil.h> #include "auth.h" -#ifdef HAS_MKSTEMP +#ifdef HAVE_MKSTEMP #include <unistd.h> #endif #include <sys/types.h> @@ -80,7 +80,7 @@ write_iceauth(FILE *addfp, FILE *removefp, IceAuthDataEntry *entry) -#ifndef HAS_MKSTEMP +#ifndef HAVE_MKSTEMP static char * unique_filename(const char *path, const char *prefix) #else @@ -88,7 +88,7 @@ static char * unique_filename(const char *path, const char *prefix, int *pFd) #endif { -#ifndef HAS_MKSTEMP +#ifndef HAVE_MKSTEMP #ifndef X_NOT_POSIX return ((char *) tempnam (path, prefix)); #else @@ -137,7 +137,7 @@ SetAuthentication(int count, IceListenObj *listenObjs, int original_umask; char command[256]; int i; -#ifdef HAS_MKSTEMP +#ifdef HAVE_MKSTEMP int fd; #endif @@ -150,7 +150,7 @@ SetAuthentication(int count, IceListenObj *listenObjs, if (!path) path = "."; } -#ifndef HAS_MKSTEMP +#ifndef HAVE_MKSTEMP if ((addAuthFile = unique_filename (path, ".xsm")) == NULL) goto bad; |