/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
-/* Define to 1 if you have the `strftime' function. */
-#undef HAVE_STRFTIME
-
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
as_fn_append ac_func_list " fexecve"
as_fn_append ac_func_list " killpg"
as_fn_append ac_func_list " nl_langinfo"
-as_fn_append ac_func_list " strftime"
as_fn_append ac_func_list " pread"
as_fn_append ac_func_list " pwrite"
as_fn_append ac_func_list " openat"
-
-
case "$host_os" in
hpux*)
if test X"$ac_cv_func_pread" = X"yes"; then
dnl Function checks
dnl
AC_FUNC_GETGROUPS
-AC_CHECK_FUNCS_ONCE([fexecve killpg nl_langinfo strftime pread pwrite openat faccessat wordexp])
+AC_CHECK_FUNCS_ONCE([fexecve killpg nl_langinfo pread pwrite openat faccessat wordexp])
case "$host_os" in
hpux*)
if test X"$ac_cv_func_pread" = X"yes"; then
/*
* Return a static buffer with the current date + time.
- * Uses strftime() if available, else falls back to ctime().
*/
char *
get_timestr(time_t tstamp, int log_year)
{
- char *s;
-#ifdef HAVE_STRFTIME
static char buf[128];
struct tm *timeptr;
timeptr) != 0 && buf[sizeof(buf) - 1] == '\0')
return buf;
}
-
-#endif /* HAVE_STRFTIME */
-
- s = ctime(&tstamp);
- if (s != NULL) {
- s += 4; /* skip day of the week */
- if (log_year)
- s[20] = '\0'; /* avoid the newline */
- else
- s[15] = '\0'; /* don't care about year */
- }
-
- return s;
+ return NULL;
}