]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/uam.c
AC_HEADER_STDC autoconf change
[netatalk.git] / etc / afpd / uam.c
index 627dab33d1f4ba1aa7cb0bb5bdb9c8625799a64b..e363905f9ec566b867633e056eb899c7c961ce53 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: uam.c,v 1.12 2001-08-03 22:09:57 srittau Exp $
+ * $Id: uam.c,v 1.13 2001-09-06 20:00:59 rufustfirefly Exp $
  *
  * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
  * All Rights Reserved.  See COPYRIGHT.
 
 #include <stdio.h>
 #include <stdlib.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 */
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif /* HAVE_UNISTD_H */