-dnl $Id: configure.in,v 1.179.2.3.2.10 2003-10-30 05:57:43 bfernhomberg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.11 2003-11-01 02:38:09 bfernhomberg Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
AC_DEFINE(HAVE_BROKEN_CPP, 1, [Define if cpp is broken])
AC_DEFINE(HAVE_2ARG_DBTOB, 1, [Define if dbtob takes two arguments])
dnl AC_DEFINE(NO_DLFCN_H)
+ AC_DEFINE(NO_DDP, 1, [Define if DDP should be disabled])
+ AC_DEFINE(NO_QUOTA_SUPPORT, 1, [Define if Quota support should be disabled])
AC_DEFINE(MACOSX_SERVER, 1, [Define if compiling for MacOS X Server])
fi
/*
- * $Id: ofork.c,v 1.20.6.2 2003-09-30 14:52:45 didg Exp $
+ * $Id: ofork.c,v 1.20.6.3 2003-11-01 02:38:09 bfernhomberg Exp $
*
* Copyright (c) 1996 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <string.h>
#include <sys/stat.h> /* works around a bug */
#include <sys/param.h>
/*
- * $Id: uams_dhx_pam.c,v 1.24.6.3 2003-10-30 00:21:46 bfernhomberg Exp $
+ * $Id: uams_dhx_pam.c,v 1.24.6.4 2003-11-01 02:38:09 bfernhomberg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#include <errno.h>
-
+#ifdef HAVE_SECURITY_PAM_APPL_H
#include <security/pam_appl.h>
+#endif
+#ifdef HAVE_PAM_PAM_APPL_H
+#include <pam/pam_appl.h>
+#endif
+
#if defined(GNUTLS_DHX)
#include <gnutls/openssl.h>
/*
- * $Id: uams_pam.c,v 1.15.2.1.2.3 2003-10-30 00:21:47 bfernhomberg Exp $
+ * $Id: uams_pam.c,v 1.15.2.1.2.4 2003-11-01 02:38:09 bfernhomberg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* Copyright (c) 1999 Adrian Sun (asun@u.washington.edu)
#include <atalk/logger.h>
+#ifdef HAVE_SECURITY_PAM_APPL_H
#include <security/pam_appl.h>
+#endif
+#ifdef HAVE_PAM_PAM_APPL_H
+#include <pam/pam_appl.h>
+#endif
#include <atalk/afp.h>
#include <atalk/uam.h>
int server_ipc_child(void *obj);
int server_ipc_parent(void *obj);
int server_ipc_read(server_child *children);
-int server_ipc_write(uint16_t command, int len, void *token);
+int server_ipc_write(u_int16_t command, int len, void *token);
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
+#ifndef EILSEQ
+#define EILSEQ 84 /* Illegal byte sequence. */
+#endif
+
/* generic iconv conversion structure */
typedef struct {
size_t (*direct)(void *cd, char **inbuf, size_t *inbytesleft,
/*
- * $Id: netddp_sendto.c,v 1.6 2003-02-17 02:02:25 srittau Exp $
+ * $Id: netddp_sendto.c,v 1.6.6.1 2003-11-01 02:38:09 bfernhomberg Exp $
*
* Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1991 Regents of The University of Michigan.
return -1;
memset(&ddphdr, 0, sizeof(ddphdr));
- ddphdr.deh_len = htons(sizeof(ddphdr) + (uint16_t) buflen);
+ ddphdr.deh_len = htons(sizeof(ddphdr) + (u_int16_t) buflen);
ddphdr.deh_dnet = sat->sat_addr.s_net;
ddphdr.deh_dnode = sat->sat_addr.s_node;
ddphdr.deh_dport = sat->sat_port;
LDFLAGS="$LDFLAGS -L$withval/lib"
AC_CHECK_LIB(iconv, iconv_open, [
ICONV_CFLAGS="-I$withval/include"
- ICONV_LIBS ="-L$withval/lib -liconv"
+ ICONV_LIBS="-L$withval/lib -liconv"
])
AC_DEFINE_UNQUOTED(WITH_LIBICONV, "${withval}",[Path to iconv])
;;
-dnl $Id: quota-check.m4,v 1.1 2001-12-01 15:25:54 srittau Exp $
+dnl $Id: quota-check.m4,v 1.1.12.1 2003-11-01 02:38:09 bfernhomberg Exp $
dnl Autoconf macro to check for quota support
dnl FIXME: This is in now way complete.
AC_DEFUN([AC_CHECK_QUOTA], [
QUOTA_LIBS=
AC_CHECK_LIB(rpcsvc, main, [QUOTA_LIBS=-lrpcsvc])
+ AC_CHECK_HEADERS(rpc/rpc.h)
AC_SUBST(QUOTA_LIBS)
])