]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/volume.c
AC_HEADER_STDC autoconf change
[netatalk.git] / etc / afpd / volume.c
index 8f37e390d9377107d1f0f112569834e96e86f3c8..3f9a0a37fb0dad8a8ce07b188c8657b44f8d14d4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.12 2001-09-04 13:52:45 rufustfirefly Exp $
+ * $Id: volume.c,v 1.13 2001-09-06 20:00:59 rufustfirefly Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.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 <pwd.h>
 #include <grp.h>
 #include <utime.h>