+2001-07-06 Ezra Peisach <epeisach@mit.edu>
+
+ * configure.in: Check if prototype needed for herror().
+
+ * commands.c (ayt_status): Add explict return type (void or int)
+ depending on signal handler definition. Add prototype for herror
+ if system does not provide one.
+
2001-07-02 Ezra Peisach <epeisach@mit.edu>
* commands.c: Remove prototypes for EncryptAutoEnc(),
send_tncmd P((void (*func)(), char *, char *));
static int help(int, char **);
+#ifdef NEED_HERROR_PROTO
+extern void herror(const char *);
+#endif
+
typedef struct {
char *name; /* command name */
char *help; /* help string (NULL for no help) */
/*
* Function that gets called when SIGINFO is received.
*/
+#if defined(CRAY) || (defined(USE_TERMIO) && !defined(SYSV_TERMIO))
+void
+ayt_status()
+{
+ (void) call(status, "status", "notmuch", 0);
+}
+#else
+int
ayt_status()
{
(void) call(status, "status", "notmuch", 0);
+ return 0;
}
+#endif
#endif
int
return 0;
}
-#define HELPINDENT (sizeof ("connect"))
+#define HELPINDENT ((int) sizeof ("connect"))
static char
openhelp[] = "connect to a site",
fi
KRB5_NEED_PROTO([#include <unistd.h>
#include <stdlib.h>],parsetos,1)
+dnl
+KRB5_NEED_PROTO([#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>],herror,1)
+dnl
CHECK_SIGNALS
if test "$KRB4_LIB" = ''; then
AC_MSG_RESULT(No Kerberos 4 authentication)