summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1996-12-31 19:10:03 +0000
committerPaul Eggert <eggert@twinsun.com>1996-12-31 19:10:03 +0000
commit5d268d20adeeae08eca429acd8ad5e8b3b11ca5f (patch)
tree275848d809946720b2c45b5bce6bdb41bf17e915
parenta9e901cccef37cdd26f87aa7a3262cbdbdbd41d5 (diff)
downloademacs-5d268d20adeeae08eca429acd8ad5e8b3b11ca5f.tar.gz
(mktime):
Use BROKEN_MKTIME instead of system-specific macros to determine whether mktime is broken.
-rw-r--r--src/config.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/config.in b/src/config.in
index b7332449925..3925f242fd8 100644
--- a/src/config.in
+++ b/src/config.in
@@ -187,6 +187,7 @@ Boston, MA 02111-1307, USA. */
#undef HAVE_SETSID
#undef HAVE_FPATHCONF
#undef HAVE_SELECT
+#undef HAVE_MKTIME
#undef HAVE_EUIDACCESS
#undef HAVE_GETPAGESIZE
#undef HAVE_TZSET
@@ -201,11 +202,6 @@ Boston, MA 02111-1307, USA. */
#undef HAVE_AIX_SMT_EXP
-#undef HAVE_MKTIME
-#if ! HAVE_MKTIME || defined (_NEXT_SOURCE)
-#define mktime emacs_mktime
-#endif
-
/* Define if you have the ANSI `strerror' function.
Otherwise you must have the variable `char *sys_errlist[]'. */
#undef HAVE_STRERROR
@@ -324,6 +320,11 @@ Boston, MA 02111-1307, USA. */
#define RE_TRANSLATE_TYPE Lisp_Object *
#endif
+/* Avoid link-time collision with system mktime if we will use our own. */
+#if ! HAVE_MKTIME || BROKEN_MKTIME
+#define mktime emacs_mktime
+#endif
+
/* The rest of the code currently tests the CPP symbol BSTRING.
Override any claims made by the system-description files.
Note that on some SCO version it is possible to have bcopy and not bcmp. */