]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/passwd.c
AC_HEADER_STDC autoconf change
[netatalk.git] / etc / afpd / passwd.c
index 2ff4516b5d339b7eb4512c29f9fd186581f25782..951d8add437a4b1d64421fa00d8edc4e402c757e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: passwd.c,v 1.3 2001-06-20 18:33:04 rufustfirefly Exp $
+ * $Id: passwd.c,v 1.4 2001-09-06 20:00:59 rufustfirefly Exp $
  *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved.
 
 #include <itc.h>
 #include <stdio.h>
+
+/* STDC check */
+#if STDC_HEADERS
 #include <string.h>
+#else /* STDC_HEADERS */
+#ifndef HAVE_STRCHR
+#define strchr index
+#define strrchr index
+#endif /* HAVE_STRCHR */
+char *strchr (), *strrchr ();
+#ifndef HAVE_MEMCPY
+#define memcpy(d,s,n) bcopy ((s), (d), (n))
+#define memmove(d,s,n) bcopy ((s), (d), (n))
+#endif /* ! HAVE_MEMCPY */
+#endif /* STDC_HEADERS */
+
 #include <r/xdr.h>
 #include <r/r.h>
 #include <afs/comauth.h>