OSDN Git Service

mkstemp()の有無の判定をconfigureでやるようにした。
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 21 Jan 2002 14:24:20 +0000 (14:24 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 21 Jan 2002 14:24:20 +0000 (14:24 +0000)
configure.in
src/h-config.h

index 1b875c5..19127f9 100644 (file)
@@ -78,6 +78,6 @@ AC_FUNC_MEMCMP
 AC_TYPE_SIGNAL
 AC_FUNC_STRFTIME
 AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(gethostname mkdir select socket strdup strstr strtol vasprintf vsnprintf)
+AC_CHECK_FUNCS(gethostname mkdir select socket strstr strtol vasprintf vsnprintf mkstemp)
 
 AC_OUTPUT(Makefile src/Makefile lib/Makefile lib/apex/Makefile lib/bone/Makefile lib/data/Makefile lib/edit/Makefile lib/file/Makefile lib/help/Makefile lib/info/Makefile lib/pref/Makefile lib/save/Makefile lib/script/Makefile lib/user/Makefile lib/xtra/Makefile lib/xtra/font/Makefile lib/xtra/graf/Makefile lib/xtra/music/Makefile lib/xtra/sound/Makefile)
index 50951a2..6363f3d 100644 (file)
     #endif
 #endif
 
-/*
- * Try to use save tempfile handling on multi-user machines.
- *
- * Comment this out if you don't have mkstemp()
- *
- * Note - I don't know how widely used this function is.
- * Feedback would be helpful, so we can remove some platforms
- * from this 'catch-all' statement.
- */
-#ifdef SET_UID
-#define HAVE_MKSTEMP
-#endif
-
-#endif
-
 #ifdef JP
 # if defined(EUC)
 #  define iskanji(x) ((((int)(x) & 0xff) >= 0xa1 && ((int)(x) & 0xff) <= 0xfe) || ((int)(x) & 0xff) == 0x8e)
 # endif /* MSDOS */
 #endif
 
+#endif /* INCLUDED_H_CONFIG_H */