/*
- * $Id: session.c,v 1.9 2001-08-08 18:12:48 rufustfirefly Exp $
+ * $Id: session.c,v 1.12 2002-01-03 17:49:39 sibaz Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
*/
-#include <sys/errno.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#ifdef HAVE_SYS_ERRNO_H
+#include <sys/errno.h>
+#endif /* HAVE_SYS_ERRNO_H */
+#ifdef HAVE_ERRNO_H
+#include <errno.h>
+#endif /* HAVE_ERRNO_H */
+
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-#include <sys/syslog.h>
+#include <syslog.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <netatalk/endian.h>
do { /* do list until success or an unrecoverable error occurs */
if (( cc = select( FD_SETSIZE, &fds, 0, 0, &tv )) < 0 )
syslog( LOG_ERR, "select: %m" ); /* log all errors */
-` } while (( cc < 0 ) && (errno == 4));
+ } while (( cc < 0 ) && (errno == 4));
if ( cc < 0 ) {
syslog( LOG_ERR, "select: Error is unrecoverable" );