-dnl $Id: configure.in,v 1.179.2.3.2.19 2004-02-14 23:43:47 bfernhomberg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.20 2004-02-20 20:53:10 bfernhomberg Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
AC_MSG_RESULT([enabling generic cdefs.h from tree])
CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
)
-AC_CHECK_HEADERS(langinfo.h locale.h)
+AC_CHECK_HEADERS(langinfo.h locale.h sys/filio.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
/*
- * $Id: lp.c,v 1.14 2002-09-29 23:29:13 sibaz Exp $
+ * $Id: lp.c,v 1.14.8.1 2004-02-20 20:53:14 bfernhomberg Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
return( -1 );
}
+#ifndef SOLARIS /* flock is unsupported, I doubt this stuff work anyway with newer solaris so ignore for now */
if ( flock( fd, LOCK_EX ) < 0 ) {
LOG(log_error, logtype_papd, "lp_init: can't lock .seq" );
spoolerror( out, NULL );
return( -1 );
}
+#endif
n = 0;
if (( len = read( fd, buf, sizeof( buf ))) < 0 ) {
/*
- * $Id: uams_passwd.c,v 1.19.2.1.2.6 2004-02-14 02:47:15 didg Exp $
+ * $Id: uams_passwd.c,v 1.19.2.1.2.7 2004-02-20 20:53:14 bfernhomberg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
* All Rights Reserved. See COPYRIGHT.
*/
-#define _XOPEN_SOURCE 500 /* for crypt() */
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */
+/* crypt needs _XOPEN_SOURCE 500 at least on BSD, but that breaks Solaris compile */
+#ifndef SOLARIS
+#define _XOPEN_SOURCE 500 /* for crypt() */
+#endif
+
#include <stdio.h>
#include <stdlib.h>
/* STDC check */
/*
- * $Id: adouble.h,v 1.21.6.11 2004-02-20 20:17:53 didg Exp $
+ * $Id: adouble.h,v 1.21.6.12 2004-02-20 20:53:14 bfernhomberg Exp $
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
#endif
#endif
-#ifdef HAVE_PREAD
+#if defined(HAVE_PREAD) && !defined(SOLARIS)
#ifdef _XOPEN_SOURCE
#undef _XOPEN_SOURCE
#endif
/*
- * $Id: util.h,v 1.7.10.3 2004-02-14 00:30:52 didg Exp $
+ * $Id: util.h,v 1.7.10.4 2004-02-20 20:53:15 bfernhomberg Exp $
*/
#ifndef _ATALK_UTIL_H
#define server_unlock(x) (unlink(x))
#ifndef HAVE_STRLCPY
-size_t strlcpy(char *d, const char *s, size_t bufsize);
+size_t strlcpy __P((char *, const char *, size_t));
#endif
#ifndef HAVE_STRLCAT
-size_t strlcat(char *d, const char *s, size_t bufsize);
+size_t strlcat __P((char *, const char *, size_t));
#endif
#ifndef HAVE_DLFCN_H
/*
- * $Id: dsi_read.c,v 1.3.14.2 2004-02-10 10:21:50 didg Exp $
+ * $Id: dsi_read.c,v 1.3.14.3 2004-02-20 20:53:15 bfernhomberg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* All rights reserved. See COPYRIGHT.
#include <signal.h>
#include <sys/types.h>
#include <sys/time.h>
+#ifdef HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
#include <atalk/dsi.h>
#include <sys/ioctl.h>